gst/pipewirepool: change acquire/release to log messages

The messages are printed for every buffer. Therefore, they should be log
messages. Also add the bufferpool to the message to be able to identify
the bufferpool that handles the buffers.
This commit is contained in:
Michael Tretter 2023-11-16 16:28:24 +01:00 committed by Wim Taymans
parent 5f916d8a2d
commit 49b971b5b1

View file

@ -182,7 +182,7 @@ acquire_buffer (GstBufferPool * pool, GstBuffer ** buffer,
*buffer = data->buf; *buffer = data->buf;
GST_OBJECT_UNLOCK (pool); GST_OBJECT_UNLOCK (pool);
GST_DEBUG ("acquire buffer %p", *buffer); GST_LOG_OBJECT (pool, "acquire buffer %p", buffer);
return GST_FLOW_OK; return GST_FLOW_OK;
@ -251,7 +251,7 @@ flush_start (GstBufferPool * pool)
static void static void
release_buffer (GstBufferPool * pool, GstBuffer *buffer) release_buffer (GstBufferPool * pool, GstBuffer *buffer)
{ {
GST_DEBUG ("release buffer %p", buffer); GST_LOG_OBJECT (pool, "release buffer %p", buffer);
} }
static gboolean static gboolean