From 016d996131d560db6d72476ae29c74df84746fff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Oct 2008 20:33:56 +0100 Subject: utils: use g_str_has_prefix() instead of prefixcmp() Remove duplicated code from MPD. --- src/decoder/mp3_plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/decoder') 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 #include #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", -- cgit v1.2.3