Clear thr->cmd_data after blocking for a reply.

This commit is contained in:
Higor Eurípedes 2015-05-20 21:43:43 -03:00
parent 9f90bdb512
commit 376228fac3

View File

@ -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);
}