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
libobs: Creating a raw output before obs_reset_video crashes in obs_get_video #2237
Creating a raw output (one without OBS_OUTPUT_ENCODED) after obs_startup() but before obs_reset_video() crashes with SIGSEGV.
obs_output_create() (libobs/obs-output.c.h:233) calls obs_get_video() for every non-encoded output.
obs_get_video() (libobs/obs.c.h:1806) returns obs->data.main_canvas->mix->video without checking for NULL. The main canvas's mix is NULL until video is reset.
Only a caller that creates an output before setting up video can hit this: a plugin, a script or a headless tool. The frontend always resets video first. Upstream has the same code.
Register an output type with get_name, create, destroy, start and stop, and flags = 0.
Call obs_output_create(id, "n", NULL, NULL). It crashes immediately.
Plan
RED: a cmocka test that creates a raw output before obs_reset_video(), in a forked child. It should get an output with no video, or NULL, instead of a crash.
Activity
rdoupe commentedon Oct 24, 2026
Claiming: #2237.
libobs: Return no main video before video is set up (obs-rust#2252)