diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/callbacks.c | 3 | ||||
-rw-r--r-- | plugins/gtkui/fileman.c | 2 | ||||
-rw-r--r-- | plugins/hotkeys/hotkeys.c | 2 |
3 files changed, 4 insertions, 3 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 { diff --git a/plugins/gtkui/fileman.c b/plugins/gtkui/fileman.c index 24b9ca8a..7ae71006 100644 --- a/plugins/gtkui/fileman.c +++ b/plugins/gtkui/fileman.c @@ -113,7 +113,7 @@ open_files_worker (void *data) { deadbeef->pl_set_cursor (PL_MAIN, 0); deadbeef->conf_save (); deadbeef->sendmessage (DB_EV_PLAYLISTCHANGED, 0, 0, 0); - deadbeef->sendmessage (DB_EV_PLAY_CURRENT, 0, 1, 0); + deadbeef->sendmessage (DB_EV_PLAY_NUM, 0, 0, 0); } void diff --git a/plugins/hotkeys/hotkeys.c b/plugins/hotkeys/hotkeys.c index 4315602d..db270d1c 100644 --- a/plugins/hotkeys/hotkeys.c +++ b/plugins/hotkeys/hotkeys.c @@ -605,7 +605,7 @@ action_play_cb (struct DB_plugin_action_s *action, int ctx) { 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 { |