Commit 49a157b1 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Allow videoconvert to parallelize in the parser.

We already do this for the transform.
parent 0b31c53e
......@@ -870,6 +870,9 @@ static bool stream_create_post_processing_elements(GstPad *pad, struct wg_parser
|| !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))
......@@ -882,6 +885,9 @@ static bool stream_create_post_processing_elements(GstPad *pad, struct wg_parser
|| !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");
if (!link_src_to_element(pad, first) || !link_element_to_sink(last, stream->my_sink))
return false;
}
......
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