Rebase against 369b540abf32869df8e9b28e283d795ae92b6a05.

This commit is contained in:
Zebediah Figura
2023-12-01 17:23:49 -06:00
parent e9a9a6e87f
commit 63aff53684
7 changed files with 35 additions and 64 deletions

View File

@@ -1,29 +0,0 @@
From 612c0266b7a8cec562f82f1a2aaf55cffc15f35e Mon Sep 17 00:00:00 2001
From: Zebediah Figura <z.figura12@gmail.com>
Date: Wed, 21 Oct 2020 16:03:21 -0500
Subject: [PATCH] winegstreamer: Allow videoconvert to parallelize.
Not sure if this should be called a hack. It's not the *best* solution to the problem, but it's not a wrong one either.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
---
dlls/winegstreamer/wg_parser.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c
index dfb3da9a4ab..2135dea456b 100644
--- a/dlls/winegstreamer/wg_parser.c
+++ b/dlls/winegstreamer/wg_parser.c
@@ -842,6 +842,9 @@ static bool stream_create_post_processing_elements(struct wg_parser_stream *stre
|| !append_element(parser->container, element, &first, &last))
return false;
+ /* Let GStreamer choose a default number of threads. */
+ gst_util_set_object_arg(G_OBJECT(element), "n-threads", "0");
+
/* GStreamer outputs RGB video top-down, but DirectShow expects bottom-up. */
if (!(element = create_element("videoflip", "good"))
|| !append_element(parser->container, element, &first, &last))
--
2.39.2