summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-12 21:38:58 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-12 21:38:58 +0100
commit210cec3980f707cdaf379cbd59a606fd5f8e5315 (patch)
tree32434189172a2d0980743643a1b891561995049c /streamer.c
parent18ffe7c635fe2657fef157cb0192ef6161723d49 (diff)
send DB_EV_SONGFINISHED event when user switches song manually
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index 861e39a2..5ea397a1 100644
--- a/streamer.c
+++ b/streamer.c
@@ -850,6 +850,10 @@ streamer_thread (void *ctx) {
gettimeofday (&tm1, NULL);
if (nextsong >= 0) { // start streaming next song
trace ("\033[0;34mnextsong=%d\033[37;0m\n", nextsong);
+ if (playing_track) {
+ trace ("sending songfinished to plugins [3]\n");
+ plug_trigger_event (DB_EV_SONGFINISHED, 0);
+ }
streamer_start_new_song ();
// it's totally possible that song was switched
// while streamer_set_current was running,