quartz/dsoundrender: Don't drop stream_cs in DSoundRender_HandleEndOfStream().
commit2d6043eb4f2f1b104416137ff7f5caecfcf62d66
authorZebediah Figura <z.figura12@gmail.com>
Tue, 1 Dec 2020 05:51:33 +0000 (30 23:51 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 1 Dec 2020 09:13:29 +0000 (1 10:13 +0100)
tree8569a45880639354b1dfd8d38c41c5760982a13e
parent3933ceca582ecc84f6bb92eb397a8eb8a0d1834a
quartz/dsoundrender: Don't drop stream_cs in DSoundRender_HandleEndOfStream().

We don't grab stream_cs to change any variables checked here, except to reset
flush_event, and that cannot result in a deadlock.

The only possible deadlocks here are:

(1) between this function and Receive(), which is correct, as the two
    should presumably be serialized;

(2) between this function and EndFlush(); however, in that case we expect
    BeginFlush() first, which will unblock the streaming thread.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/quartz/dsoundrender.c