Skip to content

bug: libobs: 32.x "Monitor Only" sources play into the stream after the 33.0 upgrade #2444

Closed

Description

@rdoupe

Location

libobs/obs-source-load.c.h:82-85 (obs_source_load_monitoring_migration()), called from obs_load_source_type() in libobs/obs.c.h:2415-2423; ported unchanged to obs-core::source_load::monitoring_migration (rust/obs-core/src/source_load.rs).

if (prev_ver < OBS_SOURCE_LOAD_MONITORING_ENABLED_BEFORE) {
	plan.store_enabled = true;
	plan.enabled = monitoring_type != OBS_SOURCE_LOAD_MONITORING_NONE;
}

Class

Logic error in a settings migration: audio meant for headphones only reaches the stream and recordings.

How it is reached

Before 33.0 a source had three monitoring types: off, Monitor Only and Monitor and Output. Upstream commit obsproject/obs-studio@646836a ("Deprecate source monitoring_type") made monitoring an on/off switch, where on always means monitor and output (obs_source_set_monitoring_enabled() sets the compat type to OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT, so the MONITOR_ONLY output gate in obs_source_output_audio() never applies). Upstream commit e8a8ac5 ("Output monitor audio while muted") made the monitor ignore mute, so 33.0 expresses monitor-only as "monitoring on + muted".

The load migration turns every saved type except off into monitoring on, and leaves the mute alone. So a source that was set to Monitor Only in Advanced Audio Properties, and was not muted, loads in 33.0 with monitoring on and unmuted: its audio now goes into every output.

User action: open a 32.x scene collection in 33.0 that has an unmuted source set to Monitor Only, then stream or record.

Upstream master (72e866557, 2026-10-23) has the same migration and no conversion. No upstream issue found. Related user report on r/obs: "No Monitor Only setting on Linux" (same UI change).

Confirmed headless against real libobs (C, hybrid and libobs-c-reference): a scene collection entry with prev_ver 32.2.2, "monitoring_type": 1, "muted": false loads with monitoring on and unmuted, and a constant tone fed to it appears in the main mix (obs_add_raw_audio_callback).

Proposed fix and failing test

Load a pre-33.0 Monitor Only source (after the 23.2.2 monitor-by-default migration) as monitoring on and muted. Monitor and Output loads as on and unmuted, off as off, and a source saved by 33.0.0 or later is not touched (33.0 saves prev_ver 33 and monitoring_type 2 or 0, so it is never re-migrated). This restores the pre-33 sound for those collections.

The fix is a new hidden pure function obs_source_load_monitor_only_mutes() in obs-source-load.c.h, ported to obs-core::source_load with its FFI shim, and a call to obs_source_set_muted(source, true) after the monitoring setter. The monitoring plan struct is unchanged.

RED: test_source_monitor_only_load (graphics suite) loads entries saved by 32.2.2 and 33.0.0 with each monitoring type, feeds a tone and checks the monitoring and mute state, the program mix and the monitor feed. On master the 32.2.2 Monitor Only entry fails: monitoring on, not muted, the tone reaches the program mix. GREEN: muted, the program mix stays silent, and the monitor feed still carries the tone.

Not covered here: the stinger transition's own monitoring setting has the same problem but no stored version to migrate safely (separate issue).

Activity

  1. added
    bug
    on Oct 26, 2026
  2. rdoupe commented on Oct 26, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2444.

  3. added
    ready
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions