mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
plugins: improve ::query() debugging messages.
Fix gst_vaapidecode_query() to correctly display the query type name, instead of randomly displaying that we shared the underlying display. Also add debug info for the GstVaapiSink::query() handler, i.e. the supplied query type name actually. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
9e3d24c669
commit
21aa850eb4
2 changed files with 6 additions and 2 deletions
|
@ -882,10 +882,12 @@ gst_vaapidecode_query(GST_PAD_QUERY_FUNCTION_ARGS)
|
|||
GST_VAAPIDECODE(gst_pad_get_parent_element(pad));
|
||||
gboolean res;
|
||||
|
||||
GST_DEBUG("sharing display %p", decode->display);
|
||||
GST_INFO_OBJECT(decode, "query type %s", GST_QUERY_TYPE_NAME(query));
|
||||
|
||||
if (gst_vaapi_reply_to_query(query, decode->display))
|
||||
if (gst_vaapi_reply_to_query(query, decode->display)) {
|
||||
GST_DEBUG("sharing display %p", decode->display);
|
||||
res = TRUE;
|
||||
}
|
||||
else if (GST_PAD_IS_SINK(pad)) {
|
||||
switch (GST_QUERY_TYPE(query)) {
|
||||
#if GST_CHECK_VERSION(1,0,0)
|
||||
|
|
|
@ -1347,6 +1347,8 @@ gst_vaapisink_query(GstBaseSink *base_sink, GstQuery *query)
|
|||
{
|
||||
GstVaapiSink * const sink = GST_VAAPISINK(base_sink);
|
||||
|
||||
GST_INFO_OBJECT(sink, "query type %s", GST_QUERY_TYPE_NAME(query));
|
||||
|
||||
if (gst_vaapi_reply_to_query(query, sink->display)) {
|
||||
GST_DEBUG("sharing display %p", sink->display);
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue