mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
faac: relace parsed with framed in aac caps
For AAC it should always be 'framed' and not 'parsed'
This commit is contained in:
parent
759ee44988
commit
62309fbfa0
1 changed files with 3 additions and 6 deletions
|
@ -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? */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue