macosx: Refactor setupVoutForWindow in VLCVideoOutputProvider
This PR's main changes regarding setupVoutForWindow
are:
- It moves much of the introspection into
mainInstance.libraryWindow
out ofVLCVideoOutputProvider
and intoVLCLibraryWindow
, where the actions that need doing to setup/unsetup video playback called by the setter ofhasActiveVideo
(which we always call regardless of the video window type) - It moves the creation of the borderless window (video wallpaper / no decoration window) into its own function, reducing the complexity of
setupVoutForWindow
- Cleans up redundant conditional cases and unnecessary assignments
Signed-off-by: Claudio Cambra claudio.cambra@gmail.com
Edited by Claudio Cambra