mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
add null pointer check, fixes startup crash with null video driver
This commit is contained in:
parent
c9c0621076
commit
151feee826
@ -523,8 +523,9 @@ static bool video_thread_handle_packet(
|
||||
break;
|
||||
|
||||
case CMD_POKE_SET_ASPECT_RATIO:
|
||||
thr->poke->set_aspect_ratio(thr->driver_data,
|
||||
pkt.data.i);
|
||||
if (thr->poke && thr->poke->set_aspect_ratio)
|
||||
thr->poke->set_aspect_ratio(thr->driver_data,
|
||||
pkt.data.i);
|
||||
video_thread_reply(thr, &pkt);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user