From e9319d2e25838f28246353c4bbf28672865def27 Mon Sep 17 00:00:00 2001 From: Memphiz Date: Sun, 25 Nov 2012 13:34:26 +0100 Subject: [dvdinputstream] - remove any "|option" options from the strFileName which might have sneaked in (since some m3u8 urls are now handled by inputstreamffmpeg). Those options should only hit our curlfile impl - others can't do anything with the suffixed options and will fail. --- xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStream.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStream.cpp b/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStream.cpp index 8649c6bb3a..219618270f 100644 --- a/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStream.cpp +++ b/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStream.cpp @@ -19,6 +19,7 @@ */ #include "DVDInputStream.h" +#include "URL.h" CDVDInputStream::CDVDInputStream(DVDStreamType streamType) { @@ -31,7 +32,13 @@ CDVDInputStream::~CDVDInputStream() bool CDVDInputStream::Open(const char* strFile, const std::string &content) { - m_strFileName = strFile; + CURL url = CURL(strFile); + + // get rid of any |option parameters which might have sneaked in here + // those are only handled by our curl impl. + url.SetProtocolOptions(""); + m_strFileName = url.Get(); + m_content = content; return true; } -- cgit v1.2.3