Merge pull request #8811 from huwpascoe/fix

Fix video_layout crash on unsupported drivers
This commit is contained in:
Twinaphex 2019-05-18 21:08:17 +02:00 committed by GitHub
commit 837a6c1750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1221,7 +1221,7 @@ bool video_driver_overlay_interface(const video_overlay_interface_t **iface)
#ifdef HAVE_VIDEO_LAYOUT
const video_layout_render_interface_t *video_driver_layout_render_interface(void)
{
if (!current_video)
if (!current_video || !current_video->video_layout_render_interface)
return NULL;
return current_video->video_layout_render_interface(video_driver_data);