Skip to content
Browse files

RingBuffer: Use case insensitive url and extension checking.

Refs #9844
  • Loading branch information...
1 parent 98d3990 commit 0e652e29906da8ecb05f15d81282c8c9549397b2 Mark Kendall committed Jun 15, 2011
Showing with 6 additions and 5 deletions.
  1. +6 −5 mythtv/libs/libmythtv/ringbuffer.cpp
View
11 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);

0 comments on commit 0e652e2

Please sign in to comment.
Something went wrong with that request. Please try again.