(ffmpeg) Better error handling

This commit is contained in:
twinaphex 2017-01-24 16:28:07 +01:00
parent e8f550b528
commit fa6dc9ec52

View File

@ -1568,6 +1568,9 @@ bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
{ 0 },
};
if (!info)
return false;
CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS, desc);
if (!CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &fmt))