Updated mfplat-streaming-support patchset

Fixed memory leak
This commit is contained in:
Alistair Leslie-Hughes 2020-08-15 17:33:26 +10:00
parent bc6c681225
commit 621cf69c80

View File

@ -1,14 +1,14 @@
From ff3c4c228a889a37193348eac1982be8c0d1e5eb Mon Sep 17 00:00:00 2001
From db329ed17f135f1a15d1c7d8d30fc60081b093a2 Mon Sep 17 00:00:00 2001
From: Derek Lesho <dlesho@codeweavers.com>
Date: Mon, 16 Mar 2020 15:27:27 -0500
Subject: [PATCH 35/54] Miscellaneous
Subject: [PATCH] Miscellaneous
---
dlls/mfreadwrite/reader.c | 12 +-
dlls/winegstreamer/gst_cbs.c | 9 +
dlls/winegstreamer/media_source.c | 115 ++-
dlls/winegstreamer/mf_decode.c | 1320 +++++++++++++++++++++++++++++
4 files changed, 1453 insertions(+), 3 deletions(-)
dlls/winegstreamer/mf_decode.c | 1321 +++++++++++++++++++++++++++++
4 files changed, 1454 insertions(+), 3 deletions(-)
create mode 100644 dlls/winegstreamer/mf_decode.c
diff --git a/dlls/mfreadwrite/reader.c b/dlls/mfreadwrite/reader.c
@ -74,7 +74,7 @@ index e392f4526f..598cd85c1e 100644
pthread_mutex_lock(&cbdata->lock);
cbdata->finished = 1;
diff --git a/dlls/winegstreamer/media_source.c b/dlls/winegstreamer/media_source.c
index c30b5e9ef0..308b98c5e6 100644
index 869bcf6fef..4e46ff10bd 100644
--- a/dlls/winegstreamer/media_source.c
+++ b/dlls/winegstreamer/media_source.c
@@ -84,6 +84,8 @@ struct source_async_command
@ -250,10 +250,10 @@ index c30b5e9ef0..308b98c5e6 100644
GstQuery *query = gst_query_new_duration(GST_FORMAT_TIME);
diff --git a/dlls/winegstreamer/mf_decode.c b/dlls/winegstreamer/mf_decode.c
new file mode 100644
index 0000000000..f5d9a83cd4
index 0000000000..d6d6b01a11
--- /dev/null
+++ b/dlls/winegstreamer/mf_decode.c
@@ -0,0 +1,1320 @@
@@ -0,0 +1,1321 @@
+#include "config.h"
+
+#include <gst/gst.h>
@ -1269,6 +1269,7 @@ index 0000000000..f5d9a83cd4
+
+ drain = gst_query_new_drain();
+ gst_pad_peer_query(decoder->input_src, drain);
+ gst_query_unref (query);
+
+ if (decoder->output_counter || decoder->draining)
+ {