From: Andoni Morales Alastruey Date: Mon, 8 Apr 2013 12:04:10 +0000 (+0200) Subject: hlsdemux: fix update interval with respect of the spec X-Git-Tag: 1.19.3~507^2~12619 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99feef2d080b9c01f85b3cd8aa4f0df88baa9146;p=platform%2Fupstream%2Fgstreamer.git hlsdemux: fix update interval with respect of the spec --- diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index f0b4ad3..527b02f 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -73,8 +73,6 @@ enum PROP_LAST }; -static const float update_interval_factor[] = { 1, 0.5, 1.5, 3 }; - #define DEFAULT_FRAGMENTS_CACHE 3 #define DEFAULT_FAILED_COUNT 3 #define DEFAULT_BITRATE_LIMIT 0.8 @@ -1260,10 +1258,10 @@ gst_hls_demux_schedule (GstHLSDemux * demux) * 0.5 for the first attempt, 1.5 for the second, and 3.0 thereafter." */ count = demux->client->update_failed_count; - if (count < 3) - update_factor = update_interval_factor[count]; + if (count == 0) + update_factor = 1.0; else - update_factor = update_interval_factor[3]; + update_factor = 0.5; /* schedule the next update using the target duration field of the * playlist */