aboutsummaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-10-30 15:27:58 +0100
committerGravatar Christian Hesse <mail@eworm.de>2017-10-30 15:27:58 +0100
commit07b1ecf04f901d62e7d6a54b204e430452124d0e (patch)
treeb643fdc88c90c75b5d4ac62956d91942e1601f4e /mpd-notification.c
parent77ae2908c1bc8185192a5a19db9cc9b513570a69 (diff)
downloadmpd-notification-07b1ecf04f901d62e7d6a54b204e430452124d0e.tar.gz
mpd-notification-07b1ecf04f901d62e7d6a54b204e430452124d0e.tar.zst
try to scale with valid pixbuf only
Diffstat (limited to 'mpd-notification.c')
-rw-r--r--mpd-notification.c2
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);