quartz: Fix return values in directsound renderer.

This commit is contained in:
Maarten Lankhorst 2008-07-02 20:08:46 -07:00 committed by Alexandre Julliard
parent 422d71f630
commit e5767b1c02
1 changed files with 4 additions and 4 deletions

View File

@ -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);