Permalink
Browse files

Loosen test for initial stream alignment before prefetch. We could ot…

…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 5a8db30aee21f416a98fbfac8b0b4022a6f9a912
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
@@ -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")

0 comments on commit 5a8db30

Please sign in to comment.