VLC Player fixes and optimizations

Some fixes and optimizations in VLC Player.
Merge pull request #280 from tdcosta100/vlc-fixes-optimizations

VLC Player fixes and optimizations