mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 16:20:39 +00:00
Merge pull request #1716 from heuripedes/master
Clear thr->cmd_data after blocking for a reply.
This commit is contained in:
commit
16a80243aa
@ -70,6 +70,7 @@ static void thread_wait_reply(thread_video_t *thr, thread_packet_t *pkt)
|
|||||||
scond_wait(thr->cond_cmd, thr->lock);
|
scond_wait(thr->cond_cmd, thr->lock);
|
||||||
|
|
||||||
*pkt = thr->cmd_data;
|
*pkt = thr->cmd_data;
|
||||||
|
thr->cmd_data.type = CMD_NONE;
|
||||||
|
|
||||||
slock_unlock(thr->lock);
|
slock_unlock(thr->lock);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user