diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-03 11:05:33 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-03 11:05:33 +0000 |
commit | 7e63bfd2abeaa405874c2317c4121ab2248f1d6b (patch) | |
tree | d817af3940f3b6074a5483ba7146c3f432842c2d /apps | |
parent | 4e74494d57b2b9f74bfcca79edcabb534b7a8384 (diff) | |
download | rockbox-7e63bfd2abeaa405874c2317c4121ab2248f1d6b.tar.gz rockbox-7e63bfd2abeaa405874c2317c4121ab2248f1d6b.zip |
Correctly re-initialize wma decoder on next track. This fixes strange observed issues (noise, crashes) which only could be solved through re-entering the wma codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29202 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/wma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/wma.c b/apps/codecs/wma.c index a0950d4eb0..e740373cfc 100644 --- a/apps/codecs/wma.c +++ b/apps/codecs/wma.c | |||
@@ -46,6 +46,8 @@ enum codec_status codec_main(void) | |||
46 | ci->configure(DSP_SET_SAMPLE_DEPTH, 29); | 46 | ci->configure(DSP_SET_SAMPLE_DEPTH, 29); |
47 | 47 | ||
48 | next_track: | 48 | next_track: |
49 | /* Proper reset of the decoder context. */ | ||
50 | memset(&wmadec, 0, sizeof(wmadec)); | ||
49 | 51 | ||
50 | /* Wait for the metadata to be read */ | 52 | /* Wait for the metadata to be read */ |
51 | while (!*ci->taginfo_ready && !ci->stop_codec) | 53 | while (!*ci->taginfo_ready && !ci->stop_codec) |