summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-04 15:09:38 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-04 15:09:38 +0200
commit1ec7b93563c52cff4616579d223ad46ee4fa69fb (patch)
treea2c91fc4103b8ea67ae938a7addd2b3bb2458004 /streamer.c
parentfa4a80bc459d43571c41116c134285eeecbd7158 (diff)
added TRACKDELETED plugin event
added TRACKDELETED handler to vorbis plugin
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/streamer.c b/streamer.c
index 2f2e05aa..ceb15654 100644
--- a/streamer.c
+++ b/streamer.c
@@ -82,6 +82,7 @@ static playItem_t *orig_streaming_song;
// playlist must call that whenever item was removed
void
streamer_song_removed_notify (playItem_t *it) {
+ plug_trigger_event (DB_EV_TRACKDELETED, (uintptr_t)it);
if (it == orig_playing_song) {
orig_playing_song = NULL;
}
@@ -249,7 +250,7 @@ streamer_thread (uintptr_t ctx) {
p_stop ();
if (str_playing_song.decoder) {
trace ("sending songfinished to plugins [1]\n");
- plug_trigger_event (DB_EV_SONGFINISHED);
+ plug_trigger_event (DB_EV_SONGFINISHED, 0);
}
messagepump_push (M_SONGCHANGED, 0, pl_get_idx_of (orig_playing_song), -1);
streamer_set_current (NULL);
@@ -276,7 +277,7 @@ streamer_thread (uintptr_t ctx) {
// plugin will get pointer to str_playing_song
if (str_playing_song.decoder) {
trace ("sending songfinished to plugins [2]\n");
- plug_trigger_event (DB_EV_SONGFINISHED);
+ plug_trigger_event (DB_EV_SONGFINISHED, 0);
}
// free old copy of playing
pl_item_free (&str_playing_song);
@@ -297,7 +298,7 @@ streamer_thread (uintptr_t ctx) {
messagepump_push (M_SONGCHANGED, 0, from, to);
// plugin will get pointer to new str_playing_song
trace ("sending songstarted to plugins\n");
- plug_trigger_event (DB_EV_SONGSTARTED);
+ plug_trigger_event (DB_EV_SONGSTARTED, 0);
playpos = 0;
}