[vlc-commits] stream_filter/httplive.c: Relax estimated download duration check.
Jean-Paul Saman
git at videolan.org
Fri Feb 11 10:14:07 CET 2011
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Thu Jan 27 13:50:28 2011 +0100| [db04e8690593e79d15dc7bbadb175ded516743a1] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db04e8690593e79d15dc7bbadb175ded516743a1
---
modules/stream_filter/httplive.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 3957406..3af6d1a 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -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;
}
}
More information about the vlc-commits
mailing list