Skip to content

Commit

Permalink
Don't make PROGRAM-ID attribute compulsory.
Browse files Browse the repository at this point in the history
Assign an id of -1 by default.

Fixes #11644
  • Loading branch information
jyavenard committed Jul 5, 2013
1 parent eb52a18 commit 53fb605
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
Expand Up @@ -1883,10 +1883,13 @@ HLSStream *HLSRingBuffer::ParseStreamInformation(const QString line, const QStri
attr = ParseAttributes(line, "PROGRAM-ID");
if (attr.isNull())
{
LOG(VB_PLAYBACK, LOG_ERR, LOC + "#EXT-X-STREAM-INF: expected PROGRAM-ID=<value>");
return NULL;
LOG(VB_PLAYBACK, LOG_INFO, LOC + "#EXT-X-STREAM-INF: expected PROGRAM-ID=<value>, using -1");
id = -1;
}
else
{
id = attr.toInt();
}
id = attr.toInt();

attr = ParseAttributes(line, "BANDWIDTH");
if (attr.isNull())
Expand Down

0 comments on commit 53fb605

Please sign in to comment.