mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
vaapivideocontext: possible memleak when no bus attached
https://bugzilla.gnome.org/show_bug.cgi?id=790999
This commit is contained in:
parent
20b95f0fec
commit
0438a3e626
1 changed files with 3 additions and 1 deletions
|
@ -196,8 +196,10 @@ _gst_context_query (GstElement * element, const gchar * context_type)
|
|||
GST_CAT_INFO_OBJECT (GST_CAT_CONTEXT, element,
|
||||
"posting `need-context' message");
|
||||
msg = gst_message_new_need_context (GST_OBJECT_CAST (element), context_type);
|
||||
if (!gst_element_post_message (element, msg))
|
||||
if (!gst_element_post_message (element, msg)) {
|
||||
GST_CAT_INFO_OBJECT (GST_CAT_CONTEXT, element, "No bus attached");
|
||||
gst_message_unref (msg);
|
||||
}
|
||||
|
||||
/*
|
||||
* Whomever responds to the need-context message performs a
|
||||
|
|
Loading…
Reference in a new issue