add null pointer check, fixes startup crash with null video driver
This commit is contained in:
parent
c9c0621076
commit
151feee826
|
@ -523,6 +523,7 @@ static bool video_thread_handle_packet(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CMD_POKE_SET_ASPECT_RATIO:
|
case CMD_POKE_SET_ASPECT_RATIO:
|
||||||
|
if (thr->poke && thr->poke->set_aspect_ratio)
|
||||||
thr->poke->set_aspect_ratio(thr->driver_data,
|
thr->poke->set_aspect_ratio(thr->driver_data,
|
||||||
pkt.data.i);
|
pkt.data.i);
|
||||||
video_thread_reply(thr, &pkt);
|
video_thread_reply(thr, &pkt);
|
||||||
|
|
Loading…
Reference in New Issue