Fix for access violation in media player when reading the position.