mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 19:45:34 +00:00
quartz: Make the DirectSound renderer return S_FALSE packet if in the paused state.
This commit is contained in:
parent
8939a41563
commit
de117c1eb5
|
@ -231,6 +231,9 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
|
||||||
|
|
||||||
TRACE("%p %p\n", iface, pSample);
|
TRACE("%p %p\n", iface, pSample);
|
||||||
|
|
||||||
|
if (This->state == State_Paused)
|
||||||
|
return S_FALSE;
|
||||||
|
|
||||||
if (This->state == State_Stopped)
|
if (This->state == State_Stopped)
|
||||||
return VFW_E_WRONG_STATE;
|
return VFW_E_WRONG_STATE;
|
||||||
|
|
||||||
|
@ -804,9 +807,9 @@ static HRESULT WINAPI DSoundRender_InputPin_BeginFlush(IPin * iface)
|
||||||
DSoundRenderImpl *pFilter = (DSoundRenderImpl *)This->pin.pinInfo.pFilter;
|
DSoundRenderImpl *pFilter = (DSoundRenderImpl *)This->pin.pinInfo.pFilter;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
|
TRACE("\n");
|
||||||
hr = InputPin_BeginFlush(iface);
|
hr = InputPin_BeginFlush(iface);
|
||||||
|
|
||||||
FIXME("Requested flush\n");
|
|
||||||
EnterCriticalSection(This->pin.pCritSec);
|
EnterCriticalSection(This->pin.pCritSec);
|
||||||
if (pFilter->dsbuffer)
|
if (pFilter->dsbuffer)
|
||||||
IDirectSoundBuffer_Stop(pFilter->dsbuffer);
|
IDirectSoundBuffer_Stop(pFilter->dsbuffer);
|
||||||
|
|
Loading…
Reference in a new issue