Skip to content

Virtual camera output freezes after disable_virtualcam() sets self.virtcam to None #262

@hiyopi-akira

Description

@hiyopi-akira

Virtual camera output stops updating after disable_virtualcam() sets self.virtcam to None.

In video_processor.py, send_frame_to_virtualcam() only sends frames when self.virtcam already exists:

if self.main_window.control["SendVirtCamFramesEnableToggle"] and self.virtcam:

If disable_virtualcam() is called while SendVirtCamFramesEnableToggle remains ON, self.virtcam becomes None.
After that, send_frame_to_virtualcam() silently returns forever and never recreates the virtual camera.

Result:

  • VisoMaster preview keeps moving
  • Unity Video Capture / OBS Virtual Camera shows a frozen frame
  • ffplay can open the device, but the frame does not update

Fix tested:
When SendVirtCamFramesEnableToggle is ON and self.virtcam is None, call enable_virtualcam() before sending frames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions