From 3c31d6118a6317f5e6a8e2862ed6d1d5163c7424 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 21 Apr 2013 23:17:07 +0200 Subject: [PATCH] Fix video_poke check causing SDL crash. --- driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver.c b/driver.c index 6b58747474..75ad10d609 100644 --- a/driver.c +++ b/driver.c @@ -946,7 +946,7 @@ void init_video_input(void) if (driver.video->set_rotation && g_extern.system.rotation) video_set_rotation_func(g_extern.system.rotation); - if (driver.video_poke->set_aspect_ratio && + if (driver.video_poke && driver.video_poke->set_aspect_ratio && g_settings.video.aspect_ratio_idx != ASPECT_RATIO_CONFIG) driver.video_poke->set_aspect_ratio(driver.video_data, g_settings.video.aspect_ratio_idx);