[rbp/omxplayer] OMXCore tidying

This gets some of the more straightfoward fixes in place, that are required by future image/texture commits.
There are a couple of minor bug fixes, but this PR should have no visible effect.