From 4a119d9d94ed23484f63b6a29484cb969e53a0ba Mon Sep 17 00:00:00 2001 From: twinaphex <libretro@gmail.com> Date: Tue, 29 Apr 2014 00:41:29 +0200 Subject: [PATCH] (SoftFilters) More of aforementioned --- gfx/filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/filter.c b/gfx/filter.c index 93468deea9..397a59693e 100644 --- a/gfx/filter.c +++ b/gfx/filter.c @@ -53,7 +53,8 @@ static void filter_thread_loop(void *data) if (die) break; - thr->packet->work(thr->userdata, thr->packet->thread_data); + if (thr->packet && thr->packet->work) + thr->packet->work(thr->userdata, thr->packet->thread_data); slock_lock(thr->lock); thr->done = true;