[gst-cvs] gst-plugins-bad: camerabin: don't log NULL caps, also downgrade to DEBUG as it is very verbose

Stefan Kost ensonic at kemper.freedesktop.org
Thu Jan 28 05:05:45 PST 2010


Module: gst-plugins-bad
Branch: master
Commit: b0533bfdffa8679b75d23c518512f7679d1869b0
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=b0533bfdffa8679b75d23c518512f7679d1869b0

Author: Stefan Kost <ensonic at users.sf.net>
Date:   Thu Jan 28 14:57:06 2010 +0200

camerabin: don't log NULL caps, also downgrade to DEBUG as it is very verbose

This debug log entry was also not ment to be used in the failure case.

---

 gst/camerabin/gstcamerabin.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c
index 31bba3d..010090f 100644
--- a/gst/camerabin/gstcamerabin.c
+++ b/gst/camerabin/gstcamerabin.c
@@ -1162,8 +1162,8 @@ done:
   if (camera->allowed_caps) {
     caps = gst_caps_copy (camera->allowed_caps);
   }
+  GST_DEBUG_OBJECT (camera, "allowed caps:%" GST_PTR_FORMAT, caps);
 failed:
-  GST_INFO_OBJECT (camera, "allowed caps:%" GST_PTR_FORMAT, caps);
   return caps;
 }
 
@@ -1412,6 +1412,7 @@ gst_camerabin_set_capsfilter_caps (GstCameraBin * camera, GstCaps * new_caps)
   if (camera->src_zoom_filter)
     g_object_set (G_OBJECT (camera->src_zoom_filter), "caps", new_caps, NULL);
   gst_camerabin_update_aspect_filter (camera, new_caps);
+  GST_INFO_OBJECT (camera, "udpated");
 }
 
 /*





More information about the Gstreamer-commits mailing list