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 audio filter below HDR Tone Mapping makes an HDR source look SDR (upstream PR #13761) #1492
No upstream issue. Upstream PR obsproject/obs-studio#13761, "libobs: Fix color space query through non-video filters", by saitatter (SaiTatter): open, approved by derrod, not merged yet. Reporter: none (no upstream issue; the PR author found it while streaming). Still present in this fork and in the current release.
Location
libobs/obs-source.c.h, obs_source_get_color_space(): an enabled filter with no video output (Gain, Noise Suppression, Compressor and the other audio filters) is answered like a video source. It has no video_get_color_space callback, so the query ends there with GS_CS_SRGB instead of going on to the filter or source below it. A disabled filter already passes the query on.
Class
Wrong behaviour. HDR Tone Mapping asks its target for the colour space. With an audio filter between it and an HDR source, it sees sRGB and does nothing, so whether it works depends on the order the filters were added in.
How it is reached
Any source with video and audio (Media Source, a capture card, Video Capture Device) playing HDR, with an audio filter added first and HDR Tone Mapping (or another filter that reads its input's colour space) added after it.
Reproduced in the current release
Headless (private Xvfb, private D-Bus, fresh HOME). test_filter_color_space (an HDR source with audio, an audio filter, a tone-mapping filter that asks its target like hdr-tonemap-filter, and two controls), run against each build's libobs:
Build
Case
Result
v0.1.0-beta.20261018 AppImage libobs
audio filter answers for the HDR source
sRGB (fail)
v0.1.0-beta.20261018 AppImage libobs
tone mapping above the audio filter sees
sRGB (fail)
v0.1.0-beta.20261018 AppImage libobs
disabled audio filter; video filter without a callback (controls)
Port upstream PR obsproject/obs-studio#13761: in obs_source_get_color_space(), a filter with no video output passes the query on to its target, as a disabled filter already does. Six lines, no API change. PR follows.
Activity
rdoupe commentedon Oct 20, 2026
Claiming: port ready (RED and GREEN done locally), PR follows today.
libobs: Fix color space query through non-video filters (obs-rust#1493)