codecanalyzer: fix codec detection with git master

The names might be 'MPEG-2 (Simple Profile)' now.
Shouldn't really rely on codec name strings here
in the first place, but use caps instead.
This commit is contained in:
Tim-Philipp Müller 2015-02-18 11:36:59 +00:00
parent 3b6f187d85
commit 74660cb861

View file

@ -79,7 +79,7 @@ find_codec_info (gchar * name)
{
guint i;
for (i = 0; i < G_N_ELEMENTS (codecs_info); ++i) {
if (!strcmp (name, codecs_info[i].discoverer_codec_name))
if (g_str_has_prefix (name, codecs_info[i].discoverer_codec_name))
return &codecs_info[i];
}
return NULL;