From 380fd56938875bf35052539d5e99ad63db87f383 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 1 Nov 2010 22:40:36 +0200 Subject: [PATCH] inputselector: move reoccuring logs to LOG and remove a double info Less debug spew in DEBUG category. No need to log pad again if we use GST_LOG_OBJECT(pad,...). --- gst/selector/gstinputselector.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gst/selector/gstinputselector.c b/gst/selector/gstinputselector.c index 395790a887..b63326e2cc 100644 --- a/gst/selector/gstinputselector.c +++ b/gst/selector/gstinputselector.c @@ -487,7 +487,7 @@ gst_selector_pad_bufferalloc (GstPad * pad, guint64 offset, sel = GST_INPUT_SELECTOR (gst_pad_get_parent (pad)); selpad = GST_SELECTOR_PAD_CAST (pad); - GST_DEBUG_OBJECT (pad, "received alloc"); + GST_LOG_OBJECT (pad, "received alloc"); GST_INPUT_SELECTOR_LOCK (sel); prev_active_sinkpad = sel->active_sinkpad; @@ -565,7 +565,7 @@ gst_selector_pad_chain (GstPad * pad, GstBuffer * buf) if (gst_input_selector_wait (sel, pad)) goto flushing; - GST_DEBUG_OBJECT (pad, "getting active pad"); + GST_LOG_OBJECT (pad, "getting active pad"); prev_active_sinkpad = sel->active_sinkpad; active_sinkpad = gst_input_selector_activate_sinkpad (sel, pad); @@ -573,10 +573,10 @@ gst_selector_pad_chain (GstPad * pad, GstBuffer * buf) /* update the segment on the srcpad */ start_time = GST_BUFFER_TIMESTAMP (buf); if (GST_CLOCK_TIME_IS_VALID (start_time)) { - GST_DEBUG_OBJECT (pad, "received start time %" GST_TIME_FORMAT, + GST_LOG_OBJECT (pad, "received start time %" GST_TIME_FORMAT, GST_TIME_ARGS (start_time)); if (GST_BUFFER_DURATION_IS_VALID (buf)) - GST_DEBUG_OBJECT (pad, "received end time %" GST_TIME_FORMAT, + GST_LOG_OBJECT (pad, "received end time %" GST_TIME_FORMAT, GST_TIME_ARGS (start_time + GST_BUFFER_DURATION (buf))); GST_OBJECT_LOCK (pad); @@ -638,8 +638,7 @@ gst_selector_pad_chain (GstPad * pad, GstBuffer * buf) } /* forward */ - GST_DEBUG_OBJECT (pad, "Forwarding buffer %p from pad %s:%s", buf, - GST_DEBUG_PAD_NAME (pad)); + GST_LOG_OBJECT (pad, "Forwarding buffer %p", buf); if ((caps = GST_BUFFER_CAPS (buf))) { if (GST_PAD_CAPS (sel->srcpad) != caps)