Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4244 from voguemaster/m3u_fix_deleting_url_string

Fix deletion of URL string for variable length playlists.
  • Loading branch information...
commit b4f1ac4abde98c5536dc4b68067c4c492399eb22 2 parents 8a4e519 + b52213c
Trent Nelson authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFFmpeg.cpp
View
3  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());
Please sign in to comment.
Something went wrong with that request. Please try again.