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

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


Hi,

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:
ReleaseBuffer(0)
Stop()
Reset() is superfluous
Release()

Regards,
 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: <http://www.winehq.org/pipermail/wine-patches/attachments/20110822/ca1bf111/attachment.obj>


More information about the wine-patches mailing list