mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
2046ba220f
commit
b05a1f75fd
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue