From 315dc7cdad3d4145c5b0378bbaffad0d213dbe0b Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 28 May 2024 12:25:43 +0300 Subject: [PATCH] gst: sink: Fix some object-less debug messages We have the object, so there's no reason to skip that in the logs. --- src/gst/gstpipewiresink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gst/gstpipewiresink.c b/src/gst/gstpipewiresink.c index 1c1610e58..a90412c17 100644 --- a/src/gst/gstpipewiresink.c +++ b/src/gst/gstpipewiresink.c @@ -528,7 +528,7 @@ do_send_buffer (GstPipeWireSink *pwsink, GstBuffer *buffer) video_size += d->chunk->size; } } else { - GST_ERROR ("plane num not matching, meta:%u buffer:%u", meta->n_planes, b->n_datas); + GST_ERROR_OBJECT (pwsink, "plane num not matching, meta:%u buffer:%u", meta->n_planes, b->n_datas); } } @@ -542,7 +542,7 @@ static void on_process (void *data) { GstPipeWireSink *pwsink = data; - GST_DEBUG ("signal"); + GST_DEBUG_OBJECT (pwsink, "signal"); g_cond_signal (&pwsink->pool->cond); } @@ -694,7 +694,7 @@ gst_pipewire_sink_setcaps (GstBaseSink * bsink, GstCaps * caps) start_error: { - GST_ERROR ("could not start stream: %s", error); + GST_ERROR_OBJECT (pwsink, "could not start stream: %s", error); pw_thread_loop_unlock (pwsink->core->loop); return FALSE; }