libobs: Adjust obs_canvas_get_video_info() to get video info from mix

This aligns obs_canvas_get_video_info() and obs_get_video_info() and
ensures the frame-rate is correct rather than returning the
potentially stale data stored in the canvas itself.
This commit is contained in:
Dennis Sädtler
2026-03-13 14:05:56 +01:00
committed by Ryan Foster
parent 638f885e5d
commit 888a5160fa

View File

@@ -419,7 +419,7 @@ bool obs_canvas_get_video_info(const obs_canvas_t *canvas, struct obs_video_info
if (!obs->video.graphics || !canvas->mix)
return false;
*ovi = canvas->ovi;
*ovi = canvas->mix->ovi;
return true;
}