From c16224a22067f93ad7375f3e469ffe6f09bbecf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 28 Feb 2013 18:53:54 +0000 Subject: [PATCH] decklinksrc: add layout=interleaved to audio caps --- sys/decklink/gstdecklinksrc.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/decklink/gstdecklinksrc.cpp b/sys/decklink/gstdecklinksrc.cpp index 6dd7f79391..f7fd294069 100644 --- a/sys/decklink/gstdecklinksrc.cpp +++ b/sys/decklink/gstdecklinksrc.cpp @@ -86,7 +86,8 @@ static GstStaticPadTemplate gst_decklink_src_audio_src_template = GST_STATIC_PAD_TEMPLATE ("audiosrc", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("audio/x-raw, format=S16LE, channels=2, rate=48000") + GST_STATIC_CAPS ("audio/x-raw, format=S16LE, channels=2, rate=48000, " + "layout=interleaved") ); /* the video source pad template is created on the fly */ @@ -651,7 +652,8 @@ gst_decklink_src_send_initial_events (GstDecklinkSrc * src) gst_pad_push_event (src->audiosrcpad, gst_event_new_caps (gst_caps_new_simple ("audio/x-raw", "format", G_TYPE_STRING, "S16LE", "channels", G_TYPE_INT, 2, - "rate", G_TYPE_INT, 48000, NULL))); + "rate", G_TYPE_INT, 48000, "layout", G_TYPE_STRING, "interleaved", + NULL))); gst_pad_push_event (src->videosrcpad, gst_event_new_caps (gst_decklink_mode_get_caps (src->mode)));