[PATCH v3 1/3] winegstreamer: Unmap and unref the buffer and release the sample before returning.
Anton Baskanov
baskanov at gmail.com
Thu Dec 31 06:52:47 CST 2020
Signed-off-by: Anton Baskanov <baskanov at gmail.com>
---
dlls/winegstreamer/gstdemux.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 9114e6610a3..805a7b8c089 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -826,6 +826,9 @@ static GstFlowReturn got_data_sink(GstPad *pad, GstObject *parent, GstBuffer *bu
hr = IMediaSample_SetActualDataLength(sample, info.size);
if(FAILED(hr)){
+ IMediaSample_Release(sample);
+ gst_buffer_unmap(buf, &info);
+ gst_buffer_unref(buf);
WARN("SetActualDataLength failed: %08x\n", hr);
return GST_FLOW_FLUSHING;
}
--
2.25.1
More information about the wine-devel
mailing list