Output per-frame debug logs only at TRACE level

This commit is contained in:
Sebastian Dröge 2021-08-20 13:48:04 +03:00
parent e3e1d09469
commit 5a79150aa3
2 changed files with 7 additions and 5 deletions

View file

@ -412,7 +412,7 @@ static gboolean gst_aja_audio_meta_transform(GstBuffer *dest, GstMeta *meta,
if (GST_META_TRANSFORM_IS_COPY(type)) {
smeta = (GstAjaAudioMeta *)meta;
GST_DEBUG("copy AJA audio metadata");
GST_TRACE("copy AJA audio metadata");
dmeta = gst_buffer_add_aja_audio_meta(dest, smeta->buffer);
if (!dmeta) return FALSE;
} else {
@ -506,7 +506,7 @@ static GstAjaMemory *_aja_memory_new_block(GstAjaAllocator *alloc,
mem = (GstAjaMemory *)g_slice_alloc(sizeof(GstAjaMemory));
data = (guint8 *)AJAMemory::AllocateAligned(maxsize, 4096);
GST_DEBUG_OBJECT(alloc, "Allocated %" G_GSIZE_FORMAT " at %p", maxsize, data);
GST_TRACE_OBJECT(alloc, "Allocated %" G_GSIZE_FORMAT " at %p", maxsize, data);
if (!alloc->device->device->DMABufferLock((ULWord *)data, maxsize, true)) {
GST_WARNING_OBJECT(alloc, "Failed to pre-lock memory");
}
@ -575,7 +575,7 @@ static void gst_aja_allocator_free(GstAllocator *alloc, GstMemory *mem) {
if (!mem->parent) {
GstAjaAllocator *aja_alloc = GST_AJA_ALLOCATOR(alloc);
GST_DEBUG_OBJECT(alloc, "Freeing memory at %p", dmem->data);
GST_TRACE_OBJECT(alloc, "Freeing memory at %p", dmem->data);
aja_alloc->device->device->DMABufferUnlock((ULWord *)dmem->data,
mem->maxsize);
AJAMemory::FreeAligned(dmem->data);

View file

@ -1442,7 +1442,7 @@ static GstFlowReturn gst_aja_src_create(GstPushSrc *psrc, GstBuffer **buffer) {
{
std::stringstream os;
os << rp188;
GST_DEBUG_OBJECT(self, "Adding timecode %s", os.str().c_str());
GST_TRACE_OBJECT(self, "Adding timecode %s", os.str().c_str());
}
guint hours, minutes, seconds, frames;
@ -1654,6 +1654,8 @@ static GstFlowReturn gst_aja_src_create(GstPushSrc *psrc, GstBuffer **buffer) {
gst_caps_unref(caps);
}
GST_TRACE_OBJECT(self, "Outputting buffer %" GST_PTR_FORMAT, *buffer);
return flow_ret;
}
@ -1759,7 +1761,7 @@ restart:
ULWord vpid_b = 0;
self->device->device->ReadSDIInVPID(self->channel, vpid_a, vpid_b);
GST_DEBUG_OBJECT(self,
GST_TRACE_OBJECT(self,
"Detected input video format %u with VPID %08x / %08x",
current_video_format, vpid_a, vpid_b);