diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-07-08 20:30:07 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-07-08 20:30:07 +0200 |
commit | faffc4a53ba096d8aea3f1c729b9251ce6dba9d0 (patch) | |
tree | 7084b1ef652b344e284231d0c259526c9a4c1d12 /plugins/gtkui | |
parent | b7a1a240765b1b87bd2c0ac05afd7c6bfe83bc37 (diff) |
fixed unpausing of currently paused track using "play" action
Diffstat (limited to 'plugins/gtkui')
-rw-r--r-- | plugins/gtkui/callbacks.c | 3 | ||||
-rw-r--r-- | plugins/gtkui/fileman.c | 2 |
2 files changed, 3 insertions, 2 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 |