[PATCH 3/4] winecoreaudio: Move notify of completed WAVEHDRs to end of wodReset.

Ken Thomases ken at codeweavers.com
Wed Jun 20 07:01:07 CDT 2007


This fixes a race condition: the app receives the notifications on another
thread and does wodClose; now wodClose and wodReset are competing as to who
sets the device state.  If wodReset gets the last word, the state is "stopped"
rather than "closed", and subsequent calls to wodOpen will fail.
---
  dlls/winecoreaudio.drv/audio.c |   11 +++++++----
  1 files changed, 7 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f656f84f78cf9bea4ea133ec878d395a838e960f.diff
Type: text/x-patch
Size: 1340 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070620/0d25208c/f656f84f78cf9bea4ea133ec878d395a838e960f.bin


More information about the wine-patches mailing list