aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpd-notification.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 2e48bb0..fdfa760 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -105,7 +105,9 @@ GdkPixbuf * retrieve_artwork(const char * music_dir, const char * uri) {
if (verbose > 0)
printf("%s: MIME type for %s is: %s\n", program, uri_path, magic_mime);
- if (strcmp(magic_mime, "audio/mpeg") != 0)
+ if (strcmp(magic_mime, "audio/mp4") != 0 &&
+ strcmp(magic_mime, "audio/mpeg") != 0 &&
+ strcmp(magic_mime, "audio/x-m4a") != 0)
goto image;
if ((pFormatCtx = avformat_alloc_context()) == NULL) {