diff options
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/mp3_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/mp3_plugin.c b/src/decoder/mp3_plugin.c index 330ba668f..68f786106 100644 --- a/src/decoder/mp3_plugin.c +++ b/src/decoder/mp3_plugin.c @@ -21,6 +21,7 @@ #include "../utils.h" #include "../conf.h" +#include <glib.h> #include <mad.h> #ifdef HAVE_ID3TAG @@ -564,7 +565,7 @@ static int parse_lame(struct lame *lame, struct mad_bitptr *ptr, int *bitlen) /* This is technically incorrect, since the encoder might not be lame. * But there's no other way to determine if this is a lame tag, and we * wouldn't want to go reading a tag that's not there. */ - if (prefixcmp(lame->encoder, "LAME")) + if (!g_str_has_prefix(lame->encoder, "LAME")) return 0; if (sscanf(lame->encoder+4, "%u.%u", |