This change updates the implementation of the mac-virtualcam plugin to not use any global state and instead rely on the state object that is passed by the OBS module system. This approach is similar to the virtual camera implementations for Linux and Windows.