va: utils: fix log category initialization

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1516>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-08-18 09:05:00 +02:00 committed by GStreamer Merge Bot
parent c905f6131d
commit 69a00541dd

View file

@ -252,6 +252,8 @@ gst_va_handle_context_query (GstElement * element, GstQuery * query,
g_return_val_if_fail (GST_IS_QUERY (query), FALSE);
g_return_val_if_fail (!display || GST_IS_VA_DISPLAY (display), FALSE);
_init_context_debug ();
GST_CAT_LOG_OBJECT (GST_CAT_CONTEXT, element,
"handle context query %" GST_PTR_FORMAT, query);
gst_query_parse_context_type (query, &context_type);