mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
add null pointer check, fixes startup crash with null video driver
This commit is contained in:
parent
c9c0621076
commit
151feee826
1 changed files with 3 additions and 2 deletions
|
@ -523,8 +523,9 @@ static bool video_thread_handle_packet(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CMD_POKE_SET_ASPECT_RATIO:
|
case CMD_POKE_SET_ASPECT_RATIO:
|
||||||
thr->poke->set_aspect_ratio(thr->driver_data,
|
if (thr->poke && thr->poke->set_aspect_ratio)
|
||||||
pkt.data.i);
|
thr->poke->set_aspect_ratio(thr->driver_data,
|
||||||
|
pkt.data.i);
|
||||||
video_thread_reply(thr, &pkt);
|
video_thread_reply(thr, &pkt);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue