cppcheck performance fixes in cores/dvdplayer/

Interesting. It seems like cppcheck is wrong then. I will revert that change.