summaryrefslogtreecommitdiff
path: root/plugins/gtkui/callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtkui/callbacks.c')
-rw-r--r--plugins/gtkui/callbacks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c
index 06daf072..913a17fb 100644
--- a/plugins/gtkui/callbacks.c
+++ b/plugins/gtkui/callbacks.c
@@ -127,6 +127,7 @@ on_playbtn_clicked (GtkButton *button,
if (cur != -1) {
ddb_playItem_t *it = deadbeef->plt_get_item_for_idx (plt, cur, PL_MAIN);
ddb_playItem_t *it_playing = deadbeef->streamer_get_playing_track ();
+
if (it) {
deadbeef->pl_item_unref (it);
}
@@ -137,7 +138,7 @@ on_playbtn_clicked (GtkButton *button,
deadbeef->sendmessage (DB_EV_PLAY_NUM, 0, cur, 0);
}
else {
- deadbeef->sendmessage (DB_EV_PLAY_CURRENT, 0, 1, 0);
+ deadbeef->sendmessage (DB_EV_PLAY_CURRENT, 0, 0, 0);
}
}
else {