Fix crash in obs_get_video_info when video_output_get_info returns NULL

This commit is contained in:
Christoph Hohmann 2014-10-05 22:33:05 +02:00
parent 2edac33c58
commit 1abda41c20

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;