summaryrefslogtreecommitdiff
path: root/plugins/supereq
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-16 21:18:57 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-16 21:18:57 +0100
commitebe72b659f00ea32e50bd103c940b7de93fbe82c (patch)
tree0719dd6cef566577521a7b41918e014d6567e416 /plugins/supereq
parentb9fe5451f6eef7cac061e505ffc255648d7e036c (diff)
supereq: re-seek current playing track after switching eq on/off
Diffstat (limited to 'plugins/supereq')
-rw-r--r--plugins/supereq/supereq.c7
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