camerabin2: remove unneeded check
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 9 Apr 2014 14:24:13 +0000 (15:24 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 9 Apr 2014 14:24:13 +0000 (15:24 +0100)
A message may not be NULL in the message handling function
(and nothing there sets it to NULL).

Coverity 1139848

gst/camerabin2/gstcamerabin2.c

index 8e0806f..e651a35 100644 (file)
@@ -1112,8 +1112,8 @@ gst_camera_bin_handle_message (GstBin * bin, GstMessage * message)
     default:
       break;
   }
-  if (message)
-    GST_BIN_CLASS (parent_class)->handle_message (bin, message);
+
+  GST_BIN_CLASS (parent_class)->handle_message (bin, message);
 
   if (dec_counter)
     GST_CAMERA_BIN2_PROCESSING_DEC (camerabin);