(video_driver.c) Ensure input is initialized in init_video_input

This commit is contained in:
Higor Eurípedes 2015-12-20 19:11:59 -03:00
parent f6729c0b74
commit d191e29d1b

View File

@ -423,7 +423,12 @@ static void init_video_input(const input_driver_t *tmp)
{ {
const input_driver_t **input = input_get_double_ptr(); const input_driver_t **input = input_get_double_ptr();
if (*input) if (*input)
{
if (!input_driver_get_data() && !input_driver_ctl(RARCH_INPUT_CTL_INIT, NULL))
goto error;
return; return;
}
/* Reset video frame count */ /* Reset video frame count */
video_driver_frame_count = 0; video_driver_frame_count = 0;