Skip to content

bug: libobs: an out-of-range deinterlace mode makes the source draw nothing #2090

Closed

Description

@rdoupe

Bug

An async source with an out-of-range deinterlace_mode draws nothing (black). This happens when the mode is loaded from a scene collection, or set through obs_source_set_deinterlace_mode() with a value outside enum obs_deinterlace_mode.

  • obs_source_set_deinterlace_mode() takes any value that isn't OBS_DEINTERLACE_MODE_DISABLE as "deinterlacing on". It sets up the deinterlace textures and the effect path.
  • get_effect() (libobs/obs-source-deinterlace.c.h) returns NULL for a value it doesn't know. deinterlace_render() then has no effect to draw with, so nothing is drawn.

The UI and obs-websocket only offer the enum values, so you only hit this with an edited or broken scene collection, or a plugin or script. Upstream has the same code. Found while scoping the deinterlace draw plan for a Rust port.

Plan

  1. RED: a real-libobs test. Load an async test source with "deinterlace_mode": 99 from a scene collection (and set the same value through the setter), then check that frames still render, read back through a raw video callback.
  2. GREEN: treat an unknown mode as OBS_DEINTERLACE_MODE_DISABLE, on load and in the setter, and keep the stored and returned values consistent. Valid modes don't change. Also check the field-order setter for the same gap.

Activity

  1. rdoupe commented on Oct 24, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2090.

  2. added
    claimed
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions