improve debug and error reporting a little

This commit is contained in:
Wim Taymans 2025-03-28 16:08:57 +01:00
parent ae1bbc93d8
commit 5f4c0cdd1e
3 changed files with 8 additions and 4 deletions

View file

@ -686,7 +686,7 @@ static GstBuffer *dequeue_buffer(GstPipeWireSrc *pwsrc)
}
if (b->buffer->n_datas != gst_buffer_n_memory(data->buf)) {
GST_ERROR_OBJECT(pwsrc, "n_datas != n_memory");
GST_ERROR_OBJECT(pwsrc, "n_datas != n_memory, (%d != %d)", b->buffer->n_datas, gst_buffer_n_memory(data->buf));
}
for (i = 0; i < b->buffer->n_datas; i++) {