[vlc-commits] stream_filter/httplive.c: Relax condition in live playback.
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 09:20:37 2011 +0100| [982278696444ec78cc7258a614170a976f0c4b72] | committer: Jean-Paul Saman
stream_filter/httplive.c: Relax condition in live playback.
When there is less then 3 times the target duration of data available in
the HLS stream print a warning and try to start anyway. Instead of aborting
playback. Other HLS clients seem to do the same.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=982278696444ec78cc7258a614170a976f0c4b72
---
modules/stream_filter/httplive.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 25c37d4..3957406 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1595,8 +1595,7 @@ static int Open(vlc_object_t *p_this)
if (p_sys->b_live && (p_sys->playback.segment < 0))
{
- msg_Err(s, "not enough data available for live playback, try again later");
- goto fail;
+ msg_Warn(s, "less data then 3 times 'target duration' available for live playback, playback may stall");
}
if (Prefetch(s, ¤t) != VLC_SUCCESS)
More information about the vlc-commits
mailing list