winegstreamer: Append a videoconvert element to wg_transform video output.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45988
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47084
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49715
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52183
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
This commit is contained in:
Rémi Bernon 2022-05-13 00:52:55 +02:00 committed by Alexandre Julliard
parent b90c53797d
commit ee7958bac7

View file

@ -268,6 +268,11 @@ NTSTATUS wg_transform_create(void *args)
break;
case WG_MAJOR_TYPE_VIDEO:
if (!(element = create_element("videoconvert", "base"))
|| !transform_append_element(transform, element, &first, &last))
goto out;
/* Let GStreamer choose a default number of threads. */
gst_util_set_object_arg(G_OBJECT(element), "n-threads", "0");
break;
case WG_MAJOR_TYPE_MPEG1_AUDIO: