Skip to content

Commit

Permalink
Loosen test for initial stream alignment before prefetch. We could ot…
Browse files Browse the repository at this point in the history
…herwise end up with a stream with no segment left. So we ensure there's always at least one.

This is required for HLS streams where the backup streams don't match at all (e.g. France24 stream)
  • Loading branch information
jyavenard committed Jun 1, 2012
1 parent ed69ea8 commit 5a8db30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2367,7 +2367,7 @@ void HLSRingBuffer::SanitizeStreams(StreamsList *streams)
// perfect, leave it alone
continue;
}
if (todrop > hls->NumSegments() || todrop < 0)
if (todrop >= hls->NumSegments() || todrop < 0)
{
LOG(VB_PLAYBACK, LOG_ERR, LOC +
QString("stream %1 [id=%2] can't be properly adjusted, ignoring")
Expand Down

0 comments on commit 5a8db30

Please sign in to comment.