Check if driver.frontend_ctx is not NULL in find_video_driver

This commit is contained in:
Twinaphex 2014-09-20 23:30:54 +02:00
parent 98eaaf8f5f
commit c37e1505ae

View File

@ -638,7 +638,8 @@ static void find_video_driver(void)
}
#endif
if (driver.frontend_ctx->get_video_driver)
if (driver.frontend_ctx &&
driver.frontend_ctx->get_video_driver)
{
driver.video = driver.frontend_ctx->get_video_driver();