mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
4b04d4a02d
commit
7c1b511e96
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue