From 8d58d2b43bca87fcaa6baadb2c9bc850ebdac39d Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 22 Jun 2023 22:22:45 -0400 Subject: [PATCH] ges: Minor debug enhancements Part-of: --- subprojects/gst-editing-services/ges/ges-pipeline.c | 3 ++- subprojects/gst-editing-services/ges/ges-timeline.c | 2 +- subprojects/gst-editing-services/ges/gstframepositioner.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-editing-services/ges/ges-pipeline.c b/subprojects/gst-editing-services/ges/ges-pipeline.c index 641b95e54c..b7fa5da232 100644 --- a/subprojects/gst-editing-services/ges/ges-pipeline.c +++ b/subprojects/gst-editing-services/ges/ges-pipeline.c @@ -517,7 +517,8 @@ _link_tracks (GESPipeline * pipeline) { GList *tmp; - GST_DEBUG_OBJECT (pipeline, "Linking tracks"); + GST_DEBUG_OBJECT (pipeline, "Linking %d tracks", + g_list_length (pipeline->priv->timeline->tracks)); if (!pipeline->priv->timeline) { GST_INFO_OBJECT (pipeline, "Not timeline set yet, doing nothing"); diff --git a/subprojects/gst-editing-services/ges/ges-timeline.c b/subprojects/gst-editing-services/ges/ges-timeline.c index 864e41d02f..5cde76c134 100644 --- a/subprojects/gst-editing-services/ges/ges-timeline.c +++ b/subprojects/gst-editing-services/ges/ges-timeline.c @@ -2516,7 +2516,7 @@ ges_timeline_add_track (GESTimeline * timeline, GESTrack * track) g_return_val_if_fail (GES_IS_TRACK (track), FALSE); CHECK_THREAD (timeline); - GST_DEBUG ("timeline:%p, track:%p", timeline, track); + GST_DEBUG_OBJECT (timeline, "Adding %" GST_PTR_FORMAT, track); /* make sure we don't already control it */ LOCK_DYN (timeline); diff --git a/subprojects/gst-editing-services/ges/gstframepositioner.c b/subprojects/gst-editing-services/ges/gstframepositioner.c index 57c7357358..16356204f2 100644 --- a/subprojects/gst-editing-services/ges/gstframepositioner.c +++ b/subprojects/gst-editing-services/ges/gstframepositioner.c @@ -494,7 +494,7 @@ gst_frame_positioner_class_init (GstFramePositionerClass * klass) GstBaseTransformClass *base_transform_class = GST_BASE_TRANSFORM_CLASS (klass); - GST_DEBUG_CATEGORY_INIT (_framepositioner, "framepositioner", + GST_DEBUG_CATEGORY_INIT (_framepositioner, "gesframepositioner", GST_DEBUG_FG_YELLOW, "ges frame positioner"); gst_element_class_add_static_pad_template (GST_ELEMENT_CLASS (klass),