mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Fix crash in obs_get_video_info when video_output_get_info returns NULL
This commit is contained in:
@@ -714,6 +714,8 @@ bool obs_get_video_info(struct obs_video_info *ovi)
|
||||
return false;
|
||||
|
||||
info = video_output_get_info(video->video);
|
||||
if (!info)
|
||||
return false;
|
||||
|
||||
memset(ovi, 0, sizeof(struct obs_video_info));
|
||||
ovi->base_width = video->base_width;
|
||||
|
||||
Reference in New Issue
Block a user