diff options
author | Christian Hesse <mail@eworm.de> | 2017-10-30 15:27:58 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-10-30 15:27:58 +0100 |
commit | 07b1ecf04f901d62e7d6a54b204e430452124d0e (patch) | |
tree | b643fdc88c90c75b5d4ac62956d91942e1601f4e | |
parent | 77ae2908c1bc8185192a5a19db9cc9b513570a69 (diff) | |
download | mpd-notification-07b1ecf04f901d62e7d6a54b204e430452124d0e.tar.gz mpd-notification-07b1ecf04f901d62e7d6a54b204e430452124d0e.tar.zst |
try to scale with valid pixbuf only
-rw-r--r-- | mpd-notification.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |