androidmedia: make gst_amc_avc_profile_from_string recognize alt name

https://bugzilla.gnome.org/show_bug.cgi?id=710433
This commit is contained in:
Chen Jie 2013-10-18 10:12:56 +08:00 committed by Sebastian Dröge
parent 2046ba220f
commit b05a1f75fd

View file

@ -2223,7 +2223,9 @@ gst_amc_avc_profile_from_string (const gchar * profile)
g_return_val_if_fail (profile != NULL, -1);
for (i = 0; i < G_N_ELEMENTS (avc_profile_mapping_table); i++) {
if (strcmp (avc_profile_mapping_table[i].str, profile) == 0)
if (strcmp (avc_profile_mapping_table[i].str, profile) == 0 ||
(avc_profile_mapping_table[i].alt_str &&
strcmp (avc_profile_mapping_table[i].alt_str, profile) == 0))
return avc_profile_mapping_table[i].id;
}