mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
decklinksrc: set discont flag on first audio buffer too
This commit is contained in:
parent
929b0bc3e2
commit
a2f446fabc
1 changed files with 5 additions and 0 deletions
|
@ -858,6 +858,11 @@ gst_decklink_src_task (void *priv)
|
|||
|
||||
decklinksrc->num_audio_samples += n_samples;
|
||||
|
||||
if (discont)
|
||||
GST_BUFFER_FLAG_SET (audio_buffer, GST_BUFFER_FLAG_DISCONT);
|
||||
else
|
||||
GST_BUFFER_FLAG_UNSET (audio_buffer, GST_BUFFER_FLAG_DISCONT);
|
||||
|
||||
audio_flow = gst_pad_push (decklinksrc->audiosrcpad, audio_buffer);
|
||||
} else {
|
||||
audio_flow = GST_FLOW_NOT_LINKED;
|
||||
|
|
Loading…
Reference in a new issue