summaryrefslogtreecommitdiff
path: root/gst/inter
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2015-01-10 15:40:30 +1100
committerJan Schmidt <jan@centricular.com>2015-01-10 16:09:19 +1100
commit4108069d0552c683100ee0087b7c2f83a91e0b2d (patch)
tree8886b31e5456093f425c67e97c7ccd628d4fbc80 /gst/inter
parent9ba9873b1f1828bc6452f0783f483355e31ae607 (diff)
inter: interaudiosrc - fixate layout for default caps
Makes interaudiosrc produce valid audio caps in the absence of any other guidance by adding to the pad template and fixate function
Diffstat (limited to 'gst/inter')
-rw-r--r--gst/inter/gstinteraudiosrc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/inter/gstinteraudiosrc.c b/gst/inter/gstinteraudiosrc.c
index 285007902..911bb8f0e 100644
--- a/gst/inter/gstinteraudiosrc.c
+++ b/gst/inter/gstinteraudiosrc.c
@@ -85,7 +85,8 @@ static GstStaticPadTemplate gst_inter_audio_src_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS (GST_AUDIO_CAPS_MAKE (GST_AUDIO_FORMATS_ALL))
+ GST_STATIC_CAPS (GST_AUDIO_CAPS_MAKE (GST_AUDIO_FORMATS_ALL)
+ ", layout = (string) interleaved")
);
@@ -477,6 +478,7 @@ gst_inter_audio_src_fixate (GstBaseSrc * src, GstCaps * caps)
gst_structure_fixate_field_string (structure, "format", GST_AUDIO_NE (S16));
gst_structure_fixate_field_nearest_int (structure, "channels", 2);
gst_structure_fixate_field_nearest_int (structure, "rate", 48000);
+ gst_structure_fixate_field_string (structure, "layout", "interleaved");
return caps;
}