media_player: Make sure everything gets initialized before the event_loop (!).