winegstreamer: Don't make the pad caps writable in pad_added_cb().

There is no need.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-02-23 16:07:02 -06:00 committed by Alexandre Julliard
parent e4922b930b
commit 2492bda6e1
1 changed files with 1 additions and 1 deletions

View File

@ -1000,7 +1000,7 @@ static void pad_added_cb(GstElement *element, GstPad *pad, gpointer user)
if (gst_pad_is_linked(pad))
return;
caps = gst_caps_make_writable(gst_pad_query_caps(pad, NULL));
caps = gst_pad_query_caps(pad, NULL);
name = gst_structure_get_name(gst_caps_get_structure(caps, 0));
if (!(stream = create_stream(parser)))