Commit 8740b576 authored by Jean-Paul Saman's avatar Jean-Paul Saman

stream_filter/httplive.c: Relax estimated download duration check.

If downloading of a segment takes longer then its duration, then print
a warning instead of terminating playback.
parent a748b8b6
......@@ -1171,11 +1171,8 @@ static int Download(stream_t *s, hls_stream_t *hls, segment_t *segment, int *cur
int estimated = (int)(size / s->p_sys->bandwidth);
if (estimated > segment->duration)
{
msg_Err(s, "cannot quarantee smooth playback");
msg_Warn(s,"downloading of segment %d takes %ds, which is longer then its playback (%ds)",
segment->sequence, estimated, segment->duration);
vlc_mutex_unlock(&segment->lock);
return VLC_EGENERIC;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment