From 40cc70cfbfe52938c31229d1337edaf03752d9b1 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 7 Apr 2008 22:28:47 -0700 Subject: [PATCH] quartz: Drop packets in the transform filter when 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); } -- 1.5.4.1