diff options
author | 2010-02-07 16:23:22 +0100 | |
---|---|---|
committer | 2010-02-07 16:23:22 +0100 | |
commit | 160bbac9ebe92d2791d1a0508f10972a1179c183 (patch) | |
tree | 0da1fe14e7551882a21bec9cf67db82122f994d3 /plugins | |
parent | b9693b2a4c60ed2944bd21014c6a33d8fdc1e990 (diff) |
fixed few regressions after merge from master
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/callbacks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index d5a4f0c3..737fcaa3 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -1012,7 +1012,7 @@ seekbar_draw (GtkWidget *widget) { } DB_playItem_t *trk = deadbeef->streamer_get_playing_track (); DB_fileinfo_t *dec = deadbeef->streamer_get_current_fileinfo (); - if (!dec || deadbeef->pl_get_item_duration (trk) < 0) { + if (!dec || !trk || deadbeef->pl_get_item_duration (trk) < 0) { clearlooks_rounded_rectangle (cr, 2, widget->allocation.height/2-4, widget->allocation.width-4, 8, 4, 0xff); theme_set_cairo_source_rgb (cr, COLO_SEEKBAR_FRONT); cairo_stroke (cr); |