diff options
| author | Joel Corley <[email protected]> | 2018-06-29 19:19:18 -0700 |
|---|---|---|
| committer | Joel Corley <[email protected]> | 2018-06-29 19:19:18 -0700 |
| commit | 30ddbb997660fa4ae3608759b9d2d0789774ccdc (patch) | |
| tree | d656c50cea303cb554460d529038fe5364634b01 /avstream/sampledevicemft/basepin.cpp | |
| parent | 6c1981b8504329521343ad00f32daa847fa6083a (diff) | |
Update AVStream / Camera samples for RS4.
Diffstat (limited to 'avstream/sampledevicemft/basepin.cpp')
| -rw-r--r-- | avstream/sampledevicemft/basepin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/avstream/sampledevicemft/basepin.cpp b/avstream/sampledevicemft/basepin.cpp index 80647f39..5e4ba038 100644 --- a/avstream/sampledevicemft/basepin.cpp +++ b/avstream/sampledevicemft/basepin.cpp @@ -644,9 +644,11 @@ STDMETHODIMP COutPin::ProcessOutput(_In_ DWORD dwFlags, } // // Any processing before we pass the sample to further in the pipeline should be done here - // PROCESSSAMPLE(pSample); + // PROCESSSAMPLE(pSample); There is a bug in the pipeline and to circumvent that we have to + // keep a reference on the sample. The pipeline is not releasing a reference when the sample + // is fed in ProcessInput. We are explicitly releasing it for the pipeline. // - pOutputSample->pSample = spSample.Get(); + pOutputSample->pSample = spSample.Detach(); pOutputSample->dwStatus = S_OK; done: return hr; |
