mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
audiobasesink: handle the RESYNC flag
Also resync when a buffer with the RESYNC flag is seen.
This commit is contained in:
parent
e68317f070
commit
df3718ea2b
1 changed files with 3 additions and 2 deletions
|
@ -1858,8 +1858,9 @@ gst_audio_base_sink_render (GstBaseSink * bsink, GstBuffer * buf)
|
|||
}
|
||||
|
||||
/* always resync after a discont */
|
||||
if (G_UNLIKELY (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DISCONT))) {
|
||||
GST_DEBUG_OBJECT (sink, "resync after discont");
|
||||
if (G_UNLIKELY (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DISCONT) ||
|
||||
GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_RESYNC))) {
|
||||
GST_DEBUG_OBJECT (sink, "resync after discont/resync");
|
||||
goto no_align;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue