summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-09 13:25:03 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-09 13:25:03 +0200
commitc828ee3b7ad0037896e2d8e3154f44bba0e1da20 (patch)
treee66c8e8be79a09d2b423c87ac229d3921ff524de /streamer.c
parent74722826f46fd4a473b983c3a261cd04a18104a6 (diff)
added SEEKED event, so that plugins can update their status
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index e2c1f1b0..4c19850a 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1124,6 +1124,12 @@ streamer_thread (void *ctx) {
avg_bitrate = -1;
streamer_unlock();
}
+ ddb_event_playpos_t tp;
+ tp.ev.event = DB_EV_SEEKED;
+ tp.ev.time = time (NULL);
+ tp.track = playing_track;
+ tp.playpos = playpos;
+ plug_event_call (DB_EVENT (&tp));
}
// read ahead at 2x speed of output samplerate, in 4k blocks