inputselector: move reoccuring logs to LOG and remove a double info
authorStefan Kost <ensonic@users.sf.net>
Mon, 1 Nov 2010 20:42:23 +0000 (22:42 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 2 Dec 2010 21:04:51 +0000 (23:04 +0200)
Less debug spew in DEBUG category. No need to log pad again if we use
GST_LOG_OBJECT(pad,...).

gst/playback/gstinputselector.c

index 4f5c71f..2673828 100644 (file)
@@ -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)