typefind: Add aac stream-format to caps

Also add the aac stream-format field on the caps when
detecting it.
This commit is contained in:
Thiago Santos 2010-01-13 12:49:20 -03:00
parent 0fe6b6e8ab
commit 148d951fbc

View file

@ -686,7 +686,8 @@ aac_type_find (GstTypeFind * tf, gpointer unused)
G_GINT64_MODIFIER "x, framelen %u", mpegversion, c.offset, len);
gst_type_find_suggest_simple (tf, GST_TYPE_FIND_LIKELY, "audio/mpeg",
"framed", G_TYPE_BOOLEAN, FALSE,
"mpegversion", G_TYPE_INT, mpegversion, NULL);
"mpegversion", G_TYPE_INT, mpegversion,
"stream-type", G_TYPE_STRING, "adts", NULL);
break;
}
@ -694,7 +695,8 @@ aac_type_find (GstTypeFind * tf, gpointer unused)
} else if (!memcmp (c.data, "ADIF", 4)) {
/* ADIF header */
gst_type_find_suggest_simple (tf, GST_TYPE_FIND_LIKELY, "audio/mpeg",
"framed", G_TYPE_BOOLEAN, FALSE, "mpegversion", G_TYPE_INT, 4, NULL);
"framed", G_TYPE_BOOLEAN, FALSE, "mpegversion", G_TYPE_INT, 4,
"stream-format", G_TYPE_STRING, "adif", NULL);
break;
}