diff options
author | 2010-12-12 21:38:58 +0100 | |
---|---|---|
committer | 2010-12-12 21:38:58 +0100 | |
commit | 210cec3980f707cdaf379cbd59a606fd5f8e5315 (patch) | |
tree | 32434189172a2d0980743643a1b891561995049c /streamer.c | |
parent | 18ffe7c635fe2657fef157cb0192ef6161723d49 (diff) |
send DB_EV_SONGFINISHED event when user switches song manually
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, |