amcaudiodec: audio/mpeg is always MPEG 1 layer 3

Configuring e.g. layer 2 on such a decoder usually fails unless
it additionally also accepts audio/mpeg-L2.
This commit is contained in:
Sebastian Dröge 2014-07-03 15:07:23 +02:00
parent aa6ee77297
commit 93bce7aeb7

View file

@ -3776,6 +3776,7 @@ gst_amc_codec_info_to_caps (const GstAmcCodecInfo * codec_info,
if (strcmp (type->mime, "audio/mpeg") == 0) {
tmp = gst_structure_new ("audio/mpeg",
"mpegversion", G_TYPE_INT, 1,
"layer", G_TYPE_INT, 3,
"rate", GST_TYPE_INT_RANGE, 1, G_MAXINT,
"channels", GST_TYPE_INT_RANGE, 1, G_MAXINT,
"parsed", G_TYPE_BOOLEAN, TRUE, NULL);