From 7e63bfd2abeaa405874c2317c4121ab2248f1d6b Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Thu, 3 Feb 2011 11:05:33 +0000 Subject: 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 --- apps/codecs/wma.c | 2 ++ 1 file changed, 2 insertions(+) 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) 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) -- cgit v1.2.3