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/codecs | |
| parent | 4e74494d57b2b9f74bfcca79edcabb534b7a8384 (diff) | |
| download | rockbox-7e63bfd2abeaa405874c2317c4121ab2248f1d6b.zip rockbox-7e63bfd2abeaa405874c2317c4121ab2248f1d6b.tar.gz rockbox-7e63bfd2abeaa405874c2317c4121ab2248f1d6b.tar.bz2 rockbox-7e63bfd2abeaa405874c2317c4121ab2248f1d6b.tar.xz | |
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/codecs')
| -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 a0950d4..e740373 100644 --- a/apps/codecs/wma.c +++ b/apps/codecs/wma.c @@ -46,6 +46,8 @@ enum codec_status codec_main(void) ci->configure(DSP_SET_SAMPLE_DEPTH, 29); next_track: + /* Proper reset of the decoder context. */ + memset(&wmadec, 0, sizeof(wmadec)); /* Wait for the metadata to be read */ while (!*ci->taginfo_ready && !ci->stop_codec) |