VLC Player fixes and optimizations

Some fixes and optimizations in VLC Player.