From 3fb52bbd4c32808ddbd7684dc48ff25bf5d27ed8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 26 Jan 2015 20:37:09 +0100 Subject: [PATCH] (gfx/video_thread_wrapper.c) Cleanups --- gfx/video_thread_wrapper.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gfx/video_thread_wrapper.c b/gfx/video_thread_wrapper.c index 42b2a48879..717427949d 100644 --- a/gfx/video_thread_wrapper.c +++ b/gfx/video_thread_wrapper.c @@ -91,9 +91,9 @@ static void thread_loop(void *data) for (;;) { + enum thread_cmd send_cmd; bool ret = false; bool updated = false; - enum thread_cmd send_cmd; slock_lock(thr->lock); while (thr->send_cmd == CMD_NONE && !thr->frame.updated) @@ -844,7 +844,9 @@ static struct video_shader *thread_get_current_shader(void *data) thread_video_t *thr = (thread_video_t*)data; if (!thr) return NULL; - return thr->poke ? thr->poke->get_current_shader(thr->driver_data) : NULL; + if (!thr->poke) + return NULL; + return thr->poke->get_current_shader(thr->driver_data); } static const video_poke_interface_t thread_poke = {