cppcheck performance fixes in cores/dvdplayer/

Have a look at http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf §12.6.2/12