menu_widgets: better sanity check for threaded video wrapper (#8722)

This commit is contained in:
Nathan S 2019-05-08 01:56:39 +02:00 committed by Twinaphex
parent ba3f164bdd
commit 4fad77304f

View File

@ -1285,7 +1285,7 @@ static bool video_thread_wrapper_menu_widgets_enabled(void *data)
{
thread_video_t *thr = (thread_video_t*)data;
if (thr && thr->driver)
if (thr && thr->driver && thr->driver->menu_widgets_enabled)
return thr->driver->menu_widgets_enabled(thr->driver_data);
return false;