faac: relace parsed with framed in aac caps

For AAC it should always be 'framed' and not 'parsed'
This commit is contained in:
Thiago Santos 2015-02-05 13:31:18 -03:00
parent 759ee44988
commit 62309fbfa0

View file

@ -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? */
}