v4l2src: don't error in shutdown
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 26 Mar 2012 13:59:01 +0000 (15:59 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 26 Mar 2012 14:00:42 +0000 (16:00 +0200)
Don't log with the ERROR category when we are stopping because we are shutting
down.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=672824

sys/v4l2/gstv4l2src.c

index c0f362f..4c06aac 100644 (file)
@@ -824,7 +824,8 @@ gst_v4l2src_fill (GstPushSrc * src, GstBuffer * buf)
   /* ERROR */
 error:
   {
-    GST_ERROR_OBJECT (src, "error processing buffer");
+    GST_DEBUG_OBJECT (src, "error processing buffer %d (%s)", ret,
+        gst_flow_get_name (ret));
     return ret;
   }
 }