summaryrefslogtreecommitdiff
path: root/ext/faac
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-02-05 11:39:55 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-02-05 13:10:16 -0300
commit759ee4498814e22357615b24345434da3e3ecd56 (patch)
treec5000a37c9aed7eb6dfe41236c0300494d8d7e2f /ext/faac
parent337bff3c8240f49c08f2b9722f006646d0a9fdb1 (diff)
downloadgstreamer-plugins-bad-759ee4498814e22357615b24345434da3e3ecd56.tar.gz
faac: fix output caps to negotiate with some muxers
Add parsed/framed=true to allow negotiation with some muxers that required parsed input. Encoders already provide parsed/framed output so it should say so in caps.
Diffstat (limited to 'ext/faac')
-rw-r--r--ext/faac/gstfaac.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ext/faac/gstfaac.c b/ext/faac/gstfaac.c
index b5afcbac1..20d79bb7c 100644
--- a/ext/faac/gstfaac.c
+++ b/ext/faac/gstfaac.c
@@ -82,13 +82,15 @@
"channels = (int) [ 1, 6 ], " \
"rate = (int) {" SAMPLE_RATES "}, " \
"stream-format = (string) { adts, raw }, " \
- "base-profile = (string) { main, lc, ssr, ltp }; " \
+ "base-profile = (string) { main, lc, ssr, ltp }, " \
+ "framed = (boolean) true; " \
"audio/mpeg, " \
"mpegversion = (int) 2, " \
"channels = (int) [ 1, 6 ], " \
"rate = (int) {" SAMPLE_RATES "}, " \
"stream-format = (string) { adts, raw }, " \
- "profile = (string) { main, lc }"
+ "profile = (string) { main, lc }," \
+ "parsed = (boolean) true; "
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
@@ -583,6 +585,8 @@ gst_faac_configure_source_pad (GstFaac * faac, GstAudioInfo * info)
}
free (config);
+
+ gst_caps_set_simple (srccaps, "framed", G_TYPE_BOOLEAN, TRUE, NULL);
} else {
const gchar *profile;
@@ -602,7 +606,8 @@ gst_faac_configure_source_pad (GstFaac * faac, GstAudioInfo * info)
profile = "lc";
break;
}
- gst_caps_set_simple (srccaps, "profile", G_TYPE_STRING, profile, NULL);
+ gst_caps_set_simple (srccaps, "profile", G_TYPE_STRING, profile,
+ "parsed", G_TYPE_BOOLEAN, TRUE, NULL);
/* FIXME: How to get the profile for mpegversion==2? */
}