mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
dashdemux: Fix sync of updated manifest from previous one
_get_next_fragment_timestamp() returns relative timestamp to period start. But gst_mpd_client_stream_seek() uses absolute MPD timeline. https://bugzilla.gnome.org/show_bug.cgi?id=781183
This commit is contained in:
parent
a8cb7662d7
commit
9956f22537
1 changed files with 6 additions and 0 deletions
|
@ -2488,6 +2488,12 @@ gst_dash_demux_update_manifest_data (GstAdaptiveDemux * demux,
|
|||
* 10 microseconds to get back to the correct segment. The errors are
|
||||
* usually on the order of nanoseconds so it should be enough.
|
||||
*/
|
||||
|
||||
/* _get_next_fragment_timestamp() returned relative timestamp to
|
||||
* corresponding period start, but _client_stream_seek expects absolute
|
||||
* MPD time. */
|
||||
ts += gst_mpd_parser_get_period_start_time (dashdemux->client);
|
||||
|
||||
GST_DEBUG_OBJECT (GST_ADAPTIVE_DEMUX_STREAM_PAD (demux_stream),
|
||||
"Current position: %" GST_TIME_FORMAT ", updating to %"
|
||||
GST_TIME_FORMAT, GST_TIME_ARGS (ts),
|
||||
|
|
Loading…
Reference in a new issue