From 62309fbfa0b4f96be6cee254e284e843073e1b11 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 5 Feb 2015 13:31:18 -0300 Subject: [PATCH] faac: relace parsed with framed in aac caps For AAC it should always be 'framed' and not 'parsed' --- ext/faac/gstfaac.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ext/faac/gstfaac.c b/ext/faac/gstfaac.c index 20d79bb7cb..c60a442f2d 100644 --- a/ext/faac/gstfaac.c +++ b/ext/faac/gstfaac.c @@ -90,7 +90,7 @@ "rate = (int) {" SAMPLE_RATES "}, " \ "stream-format = (string) { adts, raw }, " \ "profile = (string) { main, lc }," \ - "parsed = (boolean) true; " + "framed = (boolean) true; " static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, @@ -552,7 +552,7 @@ gst_faac_configure_source_pad (GstFaac * faac, GstAudioInfo * info) "channels", G_TYPE_INT, info->channels, "rate", G_TYPE_INT, info->rate, "stream-format", G_TYPE_STRING, (faac->outputformat ? "adts" : "raw"), - NULL); + "framed", G_TYPE_BOOLEAN, TRUE, NULL); /* DecoderSpecificInfo is only available for mpegversion=4 */ if (faac->mpegversion == 4) { @@ -585,8 +585,6 @@ 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; @@ -606,8 +604,7 @@ gst_faac_configure_source_pad (GstFaac * faac, GstAudioInfo * info) profile = "lc"; break; } - gst_caps_set_simple (srccaps, "profile", G_TYPE_STRING, profile, - "parsed", G_TYPE_BOOLEAN, TRUE, NULL); + gst_caps_set_simple (srccaps, "profile", G_TYPE_STRING, profile, NULL); /* FIXME: How to get the profile for mpegversion==2? */ }