You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: libobs: an out-of-range deinterlace mode makes the source draw nothing #2090
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
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.
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
rdoupe commentedon Oct 24, 2026
Claiming: #2090.
libobs: Disable an out-of-range deinterlace mode instead of drawing n…