Skip to content

Commit

Permalink
menu_widgets: better sanity check for threaded video wrapper (#8722)
Browse files Browse the repository at this point in the history
  • Loading branch information
natinusala authored and inactive123 committed May 7, 2019
1 parent ba3f164 commit 4fad773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/video_thread_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fad773

Please sign in to comment.