From 51949d0fc7de868341c9d66b9c0a34f968c02188 Mon Sep 17 00:00:00 2001 From: sideral Date: Mon, 9 May 2011 12:51:19 +0000 Subject: [PATCH] unplug_change: Precede call to audio_ff_rewind with audio_pre_ff_rewind (for SWCODEC). This became necessary with the recent playback-code renovation. Thanks to jethead for the hint! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29843 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/misc.c b/apps/misc.c index 55fd7f5f5..12d0c8d95 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -510,6 +510,9 @@ static void unplug_change(bool inserted) if (global_settings.unplug_rw) { +#if (CONFIG_CODEC == SWCODEC) + audio_pre_ff_rewind(); +#endif if (audio_current_track()->elapsed > (unsigned long)(global_settings.unplug_rw*1000)) audio_ff_rewind(audio_current_track()->elapsed - -- 2.11.4.GIT