queue2: Add details of query in debug log

This commit is contained in:
Edward Hervey 2018-09-25 09:03:03 +02:00 committed by Edward Hervey
parent 7c1d700384
commit 1bca404191

View file

@ -2738,7 +2738,8 @@ gst_queue2_handle_sink_query (GstPad * pad, GstObject * parent,
switch (GST_QUERY_TYPE (query)) { switch (GST_QUERY_TYPE (query)) {
default: default:
if (GST_QUERY_IS_SERIALIZED (query)) { if (GST_QUERY_IS_SERIALIZED (query)) {
GST_CAT_LOG_OBJECT (queue_dataflow, queue, "received query %p", query); GST_CAT_LOG_OBJECT (queue_dataflow, queue,
"received query %" GST_PTR_FORMAT, query);
/* serialized events go in the queue. We need to be certain that we /* serialized events go in the queue. We need to be certain that we
* don't cause deadlocks waiting for the query return value. We check if * don't cause deadlocks waiting for the query return value. We check if
* the queue is empty (nothing is blocking downstream and the query can * the queue is empty (nothing is blocking downstream and the query can