mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-24 08:20:42 -04:00
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:
committed by
Ryan Foster
parent
638f885e5d
commit
888a5160fa
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user