From 4a68b33029137f08c8535db581a86ae37044a799 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 31 Mar 2008 10:01:54 -0700 Subject: [PATCH] quartz: Break processing loop when shutting down. --- dlls/quartz/mpegsplit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/quartz/mpegsplit.c b/dlls/quartz/mpegsplit.c index cb7528f5603..dca0042031f 100644 --- a/dlls/quartz/mpegsplit.c +++ b/dlls/quartz/mpegsplit.c @@ -363,8 +363,11 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample) IMediaSample_SetSyncPoint(This->pCurrentSample, TRUE); } hr = FillBuffer(This, &pbSrcStream, &cbSrcStream); - if (SUCCEEDED(hr)) + if (SUCCEEDED(hr)) { + if (hr == S_FALSE) + break; continue; + } fail: FIXME("Failed with hres: %08x!\n", hr);