diff options
| author | Brandon Low <lostlogic@rockbox.org> | 2006-04-25 20:05:01 +0000 |
|---|---|---|
| committer | Brandon Low <lostlogic@rockbox.org> | 2006-04-25 20:05:01 +0000 |
| commit | 1191fa41fd70c57c5d093abd7dff2dd04b1a6880 (patch) | |
| tree | 1b68af7102c2a04cd61f1e7baec4c87cadd1f627 /apps/codecs | |
| parent | 9df0ea8297974728c390f4776ce7a2ef9bf46bee (diff) | |
| download | rockbox-1191fa41fd70c57c5d093abd7dff2dd04b1a6880.zip rockbox-1191fa41fd70c57c5d093abd7dff2dd04b1a6880.tar.gz rockbox-1191fa41fd70c57c5d093abd7dff2dd04b1a6880.tar.bz2 rockbox-1191fa41fd70c57c5d093abd7dff2dd04b1a6880.tar.xz | |
Make playback not screw up if the user tries to seek on musepack
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9806 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
| -rw-r--r-- | apps/codecs/mpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/mpc.c b/apps/codecs/mpc.c index b133823..d55ec59 100644 --- a/apps/codecs/mpc.c +++ b/apps/codecs/mpc.c @@ -155,8 +155,8 @@ next_track: /* Seek to start of track handler. This is the only case that isn't slow as hell, and needs to be supported for the back button to function as wanted. */ - if (ci->seek_time == 1) { - if (mpc_decoder_seek_sample(&decoder, 0)) { + if (ci->seek_time) { + if (ci->seek_time == 1 && mpc_decoder_seek_sample(&decoder, 0)) { samplesdone = 0; ci->set_elapsed(0); } |