Commit e5767b1c authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: Fix return values in directsound renderer.

parent 422d71f6
......@@ -243,11 +243,8 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
* pause completion here, but for sound playing a single frame doesn't make sense
*/
if (This->state == State_Paused)
return S_FALSE;
if (This->state == State_Stopped)
return S_FALSE;
return VFW_E_WRONG_STATE;
hr = IMediaSample_GetPointer(pSample, &pbSrcStream);
if (FAILED(hr))
......@@ -272,6 +269,9 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
return S_OK;
}
if (This->state == State_Paused)
return S_OK;
cbSrcStream = IMediaSample_GetActualDataLength(pSample);
TRACE("Sample data ptr = %p, size = %ld\n", pbSrcStream, cbSrcStream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment