Call on_output_changed also if just the camera changed, just to be safe
This commit is contained in:
@@ -1332,7 +1332,7 @@ update_state(MPPipeline *pipeline, const mp_state_proc *new_state)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output_changed) {
|
if (output_changed || camera_changed) {
|
||||||
state_proc.camera_rotation = mod(
|
state_proc.camera_rotation = mod(
|
||||||
state_proc.mode->rotation - state_proc.device_rotation, 360);
|
state_proc.mode->rotation - state_proc.device_rotation, 360);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user