r29348 changes can cause certain codecs to jump to code on early track change that...
commite6c2dd8c10ce37f0ee17ea64d283628012d68147
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Wed, 2 Mar 2011 03:47:42 +0000 (2 03:47 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Wed, 2 Mar 2011 03:47:42 +0000 (2 03:47 +0000)
tree1675ed55887fbe699ca16405ab95da4e6bcf3dde
parent3f9e5eaabe85266aa3f7d0b19e0c4880d8981164
r29348 changes can cause certain codecs to jump to code on early track change that assumes initializations have been done. Make sure that track change cleanups are only called if the state is sane to do so. Stops my vorbis data abort issue. Correctness for speex is a guess based on the library calls' source. It appears only speex/vorbis should have been bothered by said revision.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29489 a1c6a512-1295-4272-9138-f99709370657
apps/codecs/speex.c
apps/codecs/vorbis.c