Permalink
Browse files

Don't make PROGRAM-ID attribute compulsory.

Assign an id of -1 by default.

Fixes #11644
  • Loading branch information...
jyavenard committed Jul 5, 2013
1 parent eb52a18 commit 53fb605090e2225b82f6826e26c08f26261eaeb1
Showing with 6 additions and 3 deletions.
  1. +6 −3 mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
@@ -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())

0 comments on commit 53fb605

Please sign in to comment.