diff options
author | Trent Nelson <trent.a.b.nelson@gmail.com> | 2014-02-19 19:02:42 -0700 |
---|---|---|
committer | Trent Nelson <trent.a.b.nelson@gmail.com> | 2014-02-19 19:02:42 -0700 |
commit | b4f1ac4abde98c5536dc4b68067c4c492399eb22 (patch) | |
tree | 7eb39945a6c9fd2317525c5a41024922ba96da8b | |
parent | 8a4e519cd95dc1bc12632f15fc543c2b7b7e7f96 (diff) | |
parent | b52213cb3abc487d6df46449a3fae9044ada4f35 (diff) |
Merge pull request #4244 from voguemaster/m3u_fix_deleting_url_string
Fix deletion of URL string for variable length playlists.
-rw-r--r-- | xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.cpp index c6674ad84b..97db5cdf36 100644 --- a/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.cpp +++ b/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.cpp @@ -51,13 +51,14 @@ bool CDVDInputStreamFFmpeg::IsEOF() bool CDVDInputStreamFFmpeg::Open(const char* strFile, const std::string& content) { CFileItem item(strFile, false); + std::string selected; if (item.IsInternetStream() && item.IsType(".m3u8")) { // get the available bandwidth and determine the most appropriate stream int bandwidth = CSettings::Get().GetInt("network.bandwidth"); if(bandwidth <= 0) bandwidth = INT_MAX; - std::string selected = PLAYLIST::CPlayListM3U::GetBestBandwidthStream(strFile, bandwidth); + selected = PLAYLIST::CPlayListM3U::GetBestBandwidthStream(strFile, bandwidth); if (selected.compare(strFile) != 0) { CLog::Log(LOGINFO, "CDVDInputStreamFFmpeg: Auto-selecting %s based on configured bandwidth.", selected.c_str()); |