mmdevapi: After GetBuffer, refuse Reset, but Start/Stop is ok.

Joerg-Cyril.Hoehle at Joerg-Cyril.Hoehle at
Mon Aug 22 03:56:29 CDT 2011


My tests show that Reset cannot destroy the state prepared by GetBuffer.

My tests also show that a GetBuffer/ReleaseBuffer pair is left
undisturbed by Stop/Start in between. Fortunately, this
has no effect on the current code (but it shows that Stop must
not change This->held_frames or the write_pos).

As a result, the recommended shutdown order for an interrupted
app in unknown state is:
Reset() is superfluous

 Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AfterGetBufferRefuseReset.patch
Type: application/octet-stream
Size: 2106 bytes
Desc: AfterGetBufferRefuseReset.patch
URL: <>

More information about the wine-patches mailing list