From 07b1ecf04f901d62e7d6a54b204e430452124d0e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 30 Oct 2017 15:27:58 +0100 Subject: try to scale with valid pixbuf only --- mpd-notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpd-notification.c b/mpd-notification.c index 92f1ab2..0acafba 100644 --- a/mpd-notification.c +++ b/mpd-notification.c @@ -427,7 +427,7 @@ int main(int argc, char ** argv) { pixbuf = retrieve_artwork(music_dir, uri); - if (scale > 0) { + if (pixbuf != NULL && scale > 0) { int x, y; x = gdk_pixbuf_get_width(pixbuf); -- cgit v1.2.3-70-g09d2