From: Florin Apostol Date: Wed, 16 Dec 2015 10:23:23 +0000 (+0000) Subject: adaptivedemux: fixed clock compensation in get_fragment_waiting_time X-Git-Tag: 1.19.3~507^2~7413 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c1b511e96d900fb786101cdba5a58792454d691;p=platform%2Fupstream%2Fgstreamer.git adaptivedemux: fixed clock compensation in get_fragment_waiting_time Clock compensation is calculated in usec but is added to a GstClockTime value. https://bugzilla.gnome.org/show_bug.cgi?id=759534 --- diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 27988f5..e5b5d24 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1477,7 +1477,8 @@ gst_dash_demux_stream_get_fragment_waiting_time (GstAdaptiveDemuxStream * /* subtract the server's clock drift, so that if the server's time is behind our idea of UTC, we need to sleep for longer before requesting a fragment */ - return diff - gst_dash_demux_get_clock_compensation (dashdemux); + return diff - + gst_dash_demux_get_clock_compensation (dashdemux) * GST_USECOND; } return 0; }