Fix crash in obs_get_video_info when video_output_get_info returns NULL
This commit is contained in:
parent
2edac33c58
commit
1abda41c20
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user