quartz: Fix return values in directsound renderer.
This commit is contained in:
parent
422d71f630
commit
e5767b1c02
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue