Maarten Lankhorst : quartz: Make the DirectSound renderer return S_FALSE packet if in the paused state .
Alexandre Julliard
julliard at winehq.org
Wed Apr 9 05:31:30 CDT 2008
Module: wine
Branch: master
Commit: de117c1eb54488f839a790d5901ae34c3063dfd3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=de117c1eb54488f839a790d5901ae34c3063dfd3
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Mon Apr 7 22:30:30 2008 -0700
quartz: Make the DirectSound renderer return S_FALSE packet if in the paused state.
---
dlls/quartz/dsoundrender.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index e65ae12..290e02e 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -231,6 +231,9 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
TRACE("%p %p\n", iface, pSample);
+ if (This->state == State_Paused)
+ return S_FALSE;
+
if (This->state == State_Stopped)
return VFW_E_WRONG_STATE;
@@ -804,9 +807,9 @@ static HRESULT WINAPI DSoundRender_InputPin_BeginFlush(IPin * iface)
DSoundRenderImpl *pFilter = (DSoundRenderImpl *)This->pin.pinInfo.pFilter;
HRESULT hr;
+ TRACE("\n");
hr = InputPin_BeginFlush(iface);
- FIXME("Requested flush\n");
EnterCriticalSection(This->pin.pCritSec);
if (pFilter->dsbuffer)
IDirectSoundBuffer_Stop(pFilter->dsbuffer);
More information about the wine-cvs
mailing list