quartz: Break processing loop when shutting down.
authorChris Robinson <chris.kcat@gmail.com>
Mon, 31 Mar 2008 17:01:54 +0000 (10:01 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 1 Apr 2008 09:26:29 +0000 (11:26 +0200)
dlls/quartz/mpegsplit.c

index cb7528f56031ded4b0b34f7b78d972d0e6301c43..dca0042031f696aeee69dbdc23c7aa03b689afd2 100644 (file)
@@ -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);