sorting: fix Container.SetSortMethod (fixes #15627)
FX: [jni] useExceptionCheck rather than ExceptionOccured

ExceptionOccured creates a local ref on a jthrowable that we leak.
FIX: [amc] check for exceptions on everything
cppcheck performance fixes in cores/AudioEngine
Merge pull request #5997 from tobbi/cppcheck_perf_cores_audioengine
cppcheck fixes in cores/dvdplayer/
Fixing vdp_st checking
Merge pull request #5999 from tobbi/cppcheck_perf_cores_dvdplayer
Merge pull request #6022 from koying/moreamcfixes
Merge pull request #5977 from Montellese/fix_container_setsortmethod_15627

sorting: fix Container.SetSortMethod (fixes #15627)