]> git.sesse.net Git - vlc/commitdiff
stream_filter/httplive.c: Relax condition in live playback.
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 27 Jan 2011 08:20:37 +0000 (09:20 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Fri, 11 Feb 2011 08:58:11 +0000 (09:58 +0100)
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.

modules/stream_filter/httplive.c

index 25c37d4f877f8f3ec356c3a45392221080c12a2b..3957406d9c5ceed47f26510869079894f0df605b 100644 (file)
@@ -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, &current) != VLC_SUCCESS)