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 NULL
master
Jim 2014-10-05 14:18:04 -07:00
commit 5af4000110
1 changed files with 2 additions and 0 deletions

View File

@ -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;