mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
vaapivideocontext: log a message if no bus
Raise a warning if there is no bus when the element tries to post a message.
This commit is contained in:
parent
a567955c6d
commit
184e6890ca
1 changed files with 4 additions and 2 deletions
|
@ -171,7 +171,8 @@ _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);
|
||||
gst_element_post_message (element, msg);
|
||||
if (!gst_element_post_message (element, msg))
|
||||
GST_CAT_INFO_OBJECT (GST_CAT_CONTEXT, element, "No bus attached");
|
||||
|
||||
/*
|
||||
* Whomever responds to the need-context message performs a
|
||||
|
@ -223,7 +224,8 @@ gst_vaapi_video_context_propagate (GstElement * element,
|
|||
"posting `have-context' (%p) message with display (%p)",
|
||||
context, display);
|
||||
msg = gst_message_new_have_context (GST_OBJECT_CAST (element), context);
|
||||
gst_element_post_message (GST_ELEMENT_CAST (element), msg);
|
||||
if (!gst_element_post_message (element, msg))
|
||||
GST_CAT_INFO_OBJECT (GST_CAT_CONTEXT, element, "No bus attached");
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
|
Loading…
Reference in a new issue