cppcheck performance fixes in cores/ExternalPlayer/

Small one, again!
Fixed the issues, however I don't know how you want me to split it.