diff options
author | waker <wakeroid@gmail.com> | 2011-04-09 13:25:03 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-09 13:25:03 +0200 |
commit | c828ee3b7ad0037896e2d8e3154f44bba0e1da20 (patch) | |
tree | e66c8e8be79a09d2b423c87ac229d3921ff524de /streamer.c | |
parent | 74722826f46fd4a473b983c3a261cd04a18104a6 (diff) |
added SEEKED event, so that plugins can update their status
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |