From 4abbf915d398d5a2402c7acf85d7456a488d03ac Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 22 Apr 2008 13:37:34 -0700 Subject: [PATCH] quartz: Copy discontinuity status in acmwrapper. --- dlls/quartz/acmwrapper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/quartz/acmwrapper.c b/dlls/quartz/acmwrapper.c index 8df37ef381..11b07f1a4a 100644 --- a/dlls/quartz/acmwrapper.c +++ b/dlls/quartz/acmwrapper.c @@ -120,11 +120,15 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte if (IMediaSample_IsDiscontinuity(pSample) == S_OK) { res = acmStreamConvert(This->has, &ash, ACM_STREAMCONVERTF_START); + IMediaSample_SetDiscontinuity(pOutSample, TRUE); /* One sample could be converted to multiple packets */ IMediaSample_SetDiscontinuity(pSample, FALSE); } else + { res = acmStreamConvert(This->has, &ash, 0); + IMediaSample_SetDiscontinuity(pOutSample, FALSE); + } if (res) {