(Android) Prevent crash when Android device is minimized and you go back to

the app
This commit is contained in:
twinaphex 2020-01-13 19:21:24 +01:00
parent 46b62b4a63
commit e4ef930b47

View File

@ -21926,10 +21926,11 @@ static void video_driver_frame(const void *data, unsigned width,
#endif
}
video_driver_active = current_video->frame(
video_driver_data, data, width, height,
video_driver_frame_count,
(unsigned)pitch, video_driver_msg, &video_info);
if (current_video && current_video->frame)
video_driver_active = current_video->frame(
video_driver_data, data, width, height,
video_driver_frame_count,
(unsigned)pitch, video_driver_msg, &video_info);
video_driver_frame_count++;