[PATCH 2/2] dsound: Send CaptureBuffer stop notification whenever stopping.

Andrew Eikum aeikum at codeweavers.com
Tue Jan 12 10:14:07 CST 2021


On Mon, Jan 11, 2021 at 08:41:23PM -0500, Shawn M. Chapla wrote:
> diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
> index 10690f7df0d..02579ca064c 100644
> --- a/dlls/dsound/capture.c
> +++ b/dlls/dsound/capture.c
> @@ -544,8 +546,10 @@ static HRESULT WINAPI IDirectSoundCaptureBufferImpl_Stop(IDirectSoundCaptureBuff
>      TRACE("old This->device->state=%s\n",captureStateString[This->device->state]);
>      if (This->device->state == STATE_CAPTURING)
>  	This->device->state = STATE_STOPPING;
> -    else if (This->device->state == STATE_STARTING)
> +    else if (This->device->state == STATE_STARTING) {
>  	This->device->state = STATE_STOPPED;
> +        capture_CheckNotify(This->device->capture_buffer, 0, 0);
> +    }
>      TRACE("new This->device->state=%s\n",captureStateString[This->device->state]);
>  
>      if(This->device->client){

Introduces an indent issue here, too.

Andrew



More information about the wine-devel mailing list