diff options
author | waker <wakeroid@gmail.com> | 2010-12-16 21:18:57 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-12-16 21:18:57 +0100 |
commit | ebe72b659f00ea32e50bd103c940b7de93fbe82c (patch) | |
tree | 0719dd6cef566577521a7b41918e014d6567e416 /plugins/supereq | |
parent | b9fe5451f6eef7cac061e505ffc255648d7e036c (diff) |
supereq: re-seek current playing track after switching eq on/off
Diffstat (limited to 'plugins/supereq')
-rw-r--r-- | plugins/supereq/supereq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/supereq/supereq.c b/plugins/supereq/supereq.c index afa06359..67b89c5d 100644 --- a/plugins/supereq/supereq.c +++ b/plugins/supereq/supereq.c @@ -146,6 +146,13 @@ supereq_enable (ddb_dsp_context_t *ctx, int e) { } supereq->ctx.enabled = e; } + + DB_playItem_t *it = deadbeef->streamer_get_playing_track (); + if (it) { + float playpos = deadbeef->streamer_get_playpos (); + deadbeef->streamer_seek (playpos); + deadbeef->pl_item_unref (it); + } } int |