summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-02-28 18:53:54 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2013-03-22 10:34:47 +0000
commita1602dff871f32d3bfd7fc6a981553772a712cea (patch)
treec6092a0f2ddc5a01709f781d1642f57dc0e77de7
parent55a5fb2d7841ed6261393ba8c70afa2d869279c0 (diff)
decklinksrc: add layout=interleaved to audio caps
-rw-r--r--sys/decklink/gstdecklinksrc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/decklink/gstdecklinksrc.cpp b/sys/decklink/gstdecklinksrc.cpp
index 6dd7f7939..f7fd29406 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)));