From a2f446fabc4427ac231cc8c2cce2204580c42b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 16 Mar 2013 23:32:12 +0000 Subject: [PATCH] decklinksrc: set discont flag on first audio buffer too --- sys/decklink/gstdecklinksrc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/decklink/gstdecklinksrc.cpp b/sys/decklink/gstdecklinksrc.cpp index 13df571ca7..5234c97dde 100644 --- a/sys/decklink/gstdecklinksrc.cpp +++ b/sys/decklink/gstdecklinksrc.cpp @@ -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;