From b05a1f75fdab47dffb50e3b25f7fa10ab0c4cfbb Mon Sep 17 00:00:00 2001 From: Chen Jie Date: Fri, 18 Oct 2013 10:12:56 +0800 Subject: [PATCH] androidmedia: make gst_amc_avc_profile_from_string recognize alt name https://bugzilla.gnome.org/show_bug.cgi?id=710433 --- sys/androidmedia/gstamc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c index 6c185b41f2..18743a35d5 100644 --- a/sys/androidmedia/gstamc.c +++ b/sys/androidmedia/gstamc.c @@ -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; }