From: Torge Matthies openglfreak@googlemail.com
Not strictly necessary but avoids a potential assert in Gstreamer code. --- dlls/winegstreamer/wg_parser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c index 7253013b6a3..9aaba2ac908 100644 --- a/dlls/winegstreamer/wg_parser.c +++ b/dlls/winegstreamer/wg_parser.c @@ -526,7 +526,12 @@ static bool parser_no_more_pads(struct wg_parser *parser)
static gboolean autoplug_continue_cb(GstElement * decodebin, GstPad *pad, GstCaps * caps, gpointer user) { - return !caps_is_compressed(caps); + gboolean ret; + + caps = gst_caps_fixate(gst_caps_copy_nth(caps, 0)); + ret = !caps_is_compressed(caps); + gst_caps_unref(caps); + return ret; }
static GstAutoplugSelectResult autoplug_select_cb(GstElement *bin, GstPad *pad,