Maarten Lankhorst : quartz: Drop packets in the transform filter if in the wrong state.

Alexandre Julliard julliard at winehq.org
Wed Apr 9 05:31:29 CDT 2008


Module: wine
Branch: master
Commit: 8939a41563608585dbbfa0e76ce95237e93c3419
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8939a41563608585dbbfa0e76ce95237e93c3419

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Mon Apr  7 22:28:47 2008 -0700

quartz: Drop packets in the transform filter if in the wrong state.

---

 dlls/quartz/transform.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/quartz/transform.c b/dlls/quartz/transform.c
index 85962d1..dbb84a7 100644
--- a/dlls/quartz/transform.c
+++ b/dlls/quartz/transform.c
@@ -54,6 +54,12 @@ static HRESULT TransformFilter_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;
+
     return This->pFuncsTable->pfnProcessSampleData(This, pSample);
 }
 




More information about the wine-cvs mailing list