summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-06-15 08:55:04 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-06-15 08:55:04 (GMT)
commit0e652e29906da8ecb05f15d81282c8c9549397b2 (patch)
tree5a8c71894016c9c17d3803d793dfa599e0f04357
parent98d3990602b1b068a60e5f32ccf740b4cfce23a6 (diff)
RingBuffer: Use case insensitive url and extension checking.
Refs #9844
-rw-r--r--mythtv/libs/libmythtv/ringbuffer.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/mythtv/libs/libmythtv/ringbuffer.cpp b/mythtv/libs/libmythtv/ringbuffer.cpp
index dbe12be..583ff9f 100644
--- a/mythtv/libs/libmythtv/ringbuffer.cpp
+++ b/mythtv/libs/libmythtv/ringbuffer.cpp
@@ -102,17 +102,18 @@ RingBuffer *RingBuffer::Create(
bool usereadahead, int timeout_ms, bool stream_only)
{
QString lfilename = xfilename;
+ QString lower = lfilename.toLower();
if (write)
return new FileRingBuffer(lfilename, write, usereadahead, timeout_ms);
bool dvddir = false;
bool bddir = false;
- bool httpurl = lfilename.startsWith("http://");
- bool mythurl = lfilename.startsWith("myth://");
- bool bdurl = lfilename.startsWith("bd:");
- bool dvdurl = lfilename.startsWith("dvd:");
- bool dvdext = lfilename.endsWith(".img") || lfilename.endsWith(".iso");
+ bool httpurl = lower.startsWith("http://");
+ bool mythurl = lower.startsWith("myth://");
+ bool bdurl = lower.startsWith("bd:");
+ bool dvdurl = lower.startsWith("dvd:");
+ bool dvdext = lower.endsWith(".img") || lower.endsWith(".iso");
if (httpurl)
return new StreamingRingBuffer(lfilename);