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
This commit is contained in:
Florin Apostol 2015-12-16 10:23:23 +00:00 committed by Sebastian Dröge
parent 4b04d4a02d
commit 7c1b511e96

View file

@ -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;
}