diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-16 22:57:24 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-16 22:57:24 +0200 |
commit | dc707a1f6d57105f9a81289ad113f1a33e9c7e79 (patch) | |
tree | bda2afb9795bcd960d2c3fc2b12d882d499d3e8f /plugins/gtkui/plcommon.c | |
parent | 739fc31d262031e8d2dd661b5f439f8628e57f64 (diff) |
gtkui: fixed default cover image on resize
Diffstat (limited to 'plugins/gtkui/plcommon.c')
-rw-r--r-- | plugins/gtkui/plcommon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c index b509cbd7..750c3d75 100644 --- a/plugins/gtkui/plcommon.c +++ b/plugins/gtkui/plcommon.c @@ -227,6 +227,9 @@ void draw_column_data (DdbListview *listview, cairo_t *cr, DdbListviewIter it, D h = min (height, art_h); GdkPixbuf *pixbuf = get_cover_art_callb (deadbeef->pl_find_meta (((DB_playItem_t *)group_it), ":URI"), artist, album, real_art_width == art_width ? art_width : -1, redraw_playlist_single, listview); + if (!pixbuf) { + pixbuf = cover_get_default_pixbuf (); + } if (pixbuf) { art_width = gdk_pixbuf_get_width (pixbuf); float art_scale = (float)real_art_width / art_width; |