From 9f69e979357311df283a7436fe60a7342913ffed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 24 Nov 2015 00:20:36 +0000 Subject: [PATCH] audiomixer: register function name for debugging just once Not every time aggregate is called... --- gst/audiomixer/gstaudioaggregator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/audiomixer/gstaudioaggregator.c b/gst/audiomixer/gstaudioaggregator.c index 45353d9fe3..5d7e8d634f 100644 --- a/gst/audiomixer/gstaudioaggregator.c +++ b/gst/audiomixer/gstaudioaggregator.c @@ -175,6 +175,8 @@ static GstFlowReturn gst_audio_aggregator_do_clip (GstAggregator * agg, GstAggregatorPad * bpad, GstBuffer * buffer, GstBuffer ** outbuf); static GstFlowReturn gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout); +static gboolean sync_pad_values (GstAudioAggregator * aagg, + GstAudioAggregatorPad * pad); #define DEFAULT_OUTPUT_BUFFER_DURATION (10 * GST_MSECOND) #define DEFAULT_ALIGNMENT_THRESHOLD (40 * GST_MSECOND) @@ -240,6 +242,8 @@ gst_audio_aggregator_class_init (GstAudioAggregatorClass * klass) klass->create_output_buffer = gst_audio_aggregator_create_output_buffer; + GST_DEBUG_REGISTER_FUNCPTR (sync_pad_values); + GST_DEBUG_CATEGORY_INIT (audio_aggregator_debug, "audioaggregator", GST_DEBUG_FG_MAGENTA, "GstAudioAggregator"); @@ -1089,7 +1093,7 @@ gst_audio_aggregator_aggregate (GstAggregator * agg, gboolean timeout) /* Sync pad properties to the stream time */ gst_aggregator_iterate_sinkpads (agg, - (GstAggregatorPadForeachFunc) GST_DEBUG_FUNCPTR (sync_pad_values), NULL); + (GstAggregatorPadForeachFunc) sync_pad_values, NULL); GST_AUDIO_AGGREGATOR_LOCK (aagg); GST_OBJECT_LOCK (agg);