Check if driver.frontend_ctx is not NULL in find_video_driver
This commit is contained in:
parent
98eaaf8f5f
commit
c37e1505ae
3
driver.c
3
driver.c
|
@ -638,7 +638,8 @@ static void find_video_driver(void)
|
||||||
}
|
}
|
||||||
#endif
|
#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();
|
driver.video = driver.frontend_ctx->get_video_driver();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue