Merge pull request #274 from reboot/fix_crash_on_video_init_error
Fix crash in obs_get_video_info when video_output_get_info returns NULLmaster
commit
5af4000110
|
@ -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…
Reference in New Issue