diff options
author | Michael Hohmuth <sideral@rockbox.org> | 2011-05-09 12:51:19 +0000 |
---|---|---|
committer | Michael Hohmuth <sideral@rockbox.org> | 2011-05-09 12:51:19 +0000 |
commit | 9b7027232f2cab49e4854d56651388cf6c1461f0 (patch) | |
tree | bfeafec8cebf3261923b5be92ad26ccc7359ce26 /apps | |
parent | 9befc2e747e4f6cd2687bf267097cc7a8fd4c601 (diff) | |
download | rockbox-9b7027232f2cab49e4854d56651388cf6c1461f0.tar.gz rockbox-9b7027232f2cab49e4854d56651388cf6c1461f0.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c index 55fd7f5f51..12d0c8d95a 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -510,6 +510,9 @@ static void unplug_change(bool inserted) | |||
510 | 510 | ||
511 | if (global_settings.unplug_rw) | 511 | if (global_settings.unplug_rw) |
512 | { | 512 | { |
513 | #if (CONFIG_CODEC == SWCODEC) | ||
514 | audio_pre_ff_rewind(); | ||
515 | #endif | ||
513 | if (audio_current_track()->elapsed > | 516 | if (audio_current_track()->elapsed > |
514 | (unsigned long)(global_settings.unplug_rw*1000)) | 517 | (unsigned long)(global_settings.unplug_rw*1000)) |
515 | audio_ff_rewind(audio_current_track()->elapsed - | 518 | audio_ff_rewind(audio_current_track()->elapsed - |