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: Async rotations other than 0, ±90, 180 and 270 are drawn outside the item #2121
An async source's rotation is drawn in the wrong place unless it is exactly 0, 90, -90, 180 or 270.
get_async_width() and get_async_height() swap the axes for any rotation that is not a multiple of 180.
rotate_async_video() only has the move back into the item's box for 90, 270, -90 and 180.
So a rotation of -180, -270, 360 or 450 turns the picture without moving it back. The picture lands outside the item's box: invisible, or offset.
obs_source_set_async_rotation() stores any long. Device autorotation (win-dshow) and plugins pass their value through unchanged, so a device that reports -180 or 360 hits this. Upstream has the same code. Found while scoping round 6 of the Rust port (R6-3).
Plan
RED: a real-libobs test that sets each of the rotations 0, 90, -90, 180, 270, -180, -270, 360, 450 and -450 on an async test source, and checks that the source's reported size and the colour it draws inside the item's box match the equivalent rotation in 0-359.
GREEN: normalize the rotation to 0-359 once, in obs_source_set_async_rotation(). The five values that work today give exactly the same result. Rotations that are not a multiple of 90 stay as they are now; this fix does not define them.
Activity
rdoupe commentedon Oct 24, 2026
Claiming: #2121.
libobs: Keep an async rotation in 0-359 (obs-rust#2136)