diff options
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index ce8b06151..bfebac4fc 100644 --- a/src/audio.c +++ b/src/audio.c @@ -28,6 +28,8 @@ #include "utils.h" #include "os_compat.h" +#include <glib.h> + #define AUDIO_DEVICE_STATE "audio_device_state:" #define AUDIO_BUFFER_SIZE 2*MPD_PATH_MAX @@ -434,7 +436,7 @@ void readAudioDevicesState(FILE *fp) while (myFgets(buffer, AUDIO_BUFFER_SIZE, fp)) { char *c, *name; - if (prefixcmp(buffer, AUDIO_DEVICE_STATE)) + if (!g_str_has_prefix(buffer, AUDIO_DEVICE_STATE)) continue; c = strchr(buffer, ':'); |