Commit 86034654 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

evr: Release buffer after adding it to sample.

parent ca9f3576
......@@ -1747,7 +1747,10 @@ HRESULT WINAPI MFCreateVideoSampleFromSurface(IUnknown *surface, IMFSample **sam
}
if (buffer)
{
IMFSample_AddBuffer(object->sample, buffer);
IMFMediaBuffer_Release(buffer);
}
video_sample_create_tracking_thread();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment