From b0d41c5db8c29b3df2a5b23d3da55141d701b992 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 6 Dec 2017 16:11:46 -0500 Subject: [PATCH] videoconvert: gst_element_post_message() is transfer full on msg For this reson we need not to unref the message, even if it failed. --- gst/vaapi/gstvaapivideocontext.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst/vaapi/gstvaapivideocontext.c b/gst/vaapi/gstvaapivideocontext.c index 0646165..4c5a1d3 100644 --- a/gst/vaapi/gstvaapivideocontext.c +++ b/gst/vaapi/gstvaapivideocontext.c @@ -243,7 +243,6 @@ _gst_vaapi_sink_find_context (GstElement * element) if (!gst_element_post_message (element, msg)) { _init_context_debug (); GST_CAT_INFO_OBJECT (GST_CAT_CONTEXT, element, "No bus attached"); - gst_message_unref (msg); } return FALSE; -- 2.7.4