mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
audiorate: set DISCONT when resyncing (e.g. newsegment)
This commit is contained in:
parent
56d4534554
commit
4bbde64da6
1 changed files with 3 additions and 0 deletions
|
@ -519,6 +519,9 @@ gst_audio_rate_chain (GstPad * pad, GstBuffer * buf)
|
|||
|
||||
GST_DEBUG_OBJECT (audiorate, "resync to offset %" G_GINT64_FORMAT, pos);
|
||||
|
||||
/* resyncing is a discont */
|
||||
audiorate->discont = TRUE;
|
||||
|
||||
audiorate->next_offset = pos;
|
||||
audiorate->next_ts = gst_util_uint64_scale_int (audiorate->next_offset,
|
||||
GST_SECOND, audiorate->rate);
|
||||
|
|
Loading…
Reference in a new issue