From da1bcb7a33d75a9f56012cbd7890e7af7c0dec6a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 5 Oct 2016 13:54:37 +0200 Subject: do not handle image path, but always give pixbuf --- mpd-notification.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mpd-notification.h') diff --git a/mpd-notification.h b/mpd-notification.h index 429f3ed..9fdd941 100644 --- a/mpd-notification.h +++ b/mpd-notification.h @@ -34,13 +34,13 @@ /*** received_signal ***/ void received_signal(int signal); -/*** retrieve_album_art ***/ +/*** retrieve_artwork_media ***/ #ifdef HAVE_LIBAV -GdkPixbuf * retrieve_album_art(const char * music_dir, const char * uri); +GdkPixbuf * retrieve_artwork_media(const char * music_dir, const char * uri); #endif -/*** get_icon ***/ -char * get_icon(const char * music_dir, const char * uri); +/*** retrieve_artwork_image ***/ +GdkPixbuf * retrieve_artwork_image(const char * music_dir, const char * uri); /*** append_string ***/ char * append_string(char * string, const char * format, const char delim, const char * s); -- cgit v1.2.3 From ff1595ed259b2acb2839d98c62db54113bf32976 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 5 Oct 2016 14:25:10 +0200 Subject: merge the artwork functions --- mpd-notification.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'mpd-notification.h') diff --git a/mpd-notification.h b/mpd-notification.h index 9fdd941..e11c359 100644 --- a/mpd-notification.h +++ b/mpd-notification.h @@ -34,13 +34,8 @@ /*** received_signal ***/ void received_signal(int signal); -/*** retrieve_artwork_media ***/ -#ifdef HAVE_LIBAV -GdkPixbuf * retrieve_artwork_media(const char * music_dir, const char * uri); -#endif - -/*** retrieve_artwork_image ***/ -GdkPixbuf * retrieve_artwork_image(const char * music_dir, const char * uri); +/*** retrieve_artwork ***/ +GdkPixbuf * retrieve_artwork(const char * music_dir, const char * uri); /*** append_string ***/ char * append_string(char * string, const char * format, const char delim, const char * s); -- cgit v1.2.3 From 9c5d990ff88ac3055623f7b9b3429bce52a0e11d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 5 Oct 2016 22:09:18 +0200 Subject: add notification file workaround --- mpd-notification.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mpd-notification.h') diff --git a/mpd-notification.h b/mpd-notification.h index e11c359..0cbd370 100644 --- a/mpd-notification.h +++ b/mpd-notification.h @@ -31,6 +31,8 @@ #define PROGNAME "mpd-notification" +#define OPT_FILE_WORKAROUND UCHAR_MAX + 1 + /*** received_signal ***/ void received_signal(int signal); -- cgit v1.2.3