mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
audiomixer: Also resync timestamps on the RESYNC flag
This commit is contained in:
parent
5fcc53e552
commit
a1f95f5625
1 changed files with 3 additions and 1 deletions
|
@ -1289,7 +1289,9 @@ gst_audio_mixer_fill_buffer (GstAudioMixer * audiomixer, GstCollectPads * pads,
|
|||
start_offset = gst_util_uint64_scale (start_time, rate, GST_SECOND);
|
||||
end_offset = start_offset + adata->size / bpf;
|
||||
|
||||
if (GST_BUFFER_IS_DISCONT (inbuf) || adata->next_offset == -1) {
|
||||
if (GST_BUFFER_IS_DISCONT (inbuf)
|
||||
|| GST_BUFFER_FLAG_IS_SET (inbuf, GST_BUFFER_FLAG_RESYNC)
|
||||
|| adata->next_offset == -1) {
|
||||
discont = TRUE;
|
||||
} else {
|
||||
guint64 diff, max_sample_diff;
|
||||
|
|
Loading…
Reference in a new issue