Zebediah Figura : winegstreamer: Don't make the pad caps writable in pad_added_cb().
Alexandre Julliard
julliard at winehq.org
Wed Feb 24 15:45:41 CST 2021
Module: wine
Branch: master
Commit: 2492bda6e1f82a170db60f25080444f36ab239dd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2492bda6e1f82a170db60f25080444f36ab239dd
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Tue Feb 23 16:07:02 2021 -0600
winegstreamer: Don't make the pad caps writable in pad_added_cb().
There is no need.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/wg_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c
index 341ca182749..a2eaf1958d6 100644
--- a/dlls/winegstreamer/wg_parser.c
+++ b/dlls/winegstreamer/wg_parser.c
@@ -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)))
More information about the wine-cvs
mailing list