From 376228fac3763c7cb921a55b134d6b71f22e8b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Wed, 20 May 2015 21:43:43 -0300 Subject: [PATCH] Clear thr->cmd_data after blocking for a reply. --- gfx/video_thread_wrapper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/video_thread_wrapper.c b/gfx/video_thread_wrapper.c index 4b5e85d717..28a9cb196c 100644 --- a/gfx/video_thread_wrapper.c +++ b/gfx/video_thread_wrapper.c @@ -70,6 +70,7 @@ static void thread_wait_reply(thread_video_t *thr, thread_packet_t *pkt) scond_wait(thr->cond_cmd, thr->lock); *pkt = thr->cmd_data; + thr->cmd_data.type = CMD_NONE; slock_unlock(thr->lock); }