[Mux] fix coverity issue (1029508)
authorJaeyun <jy1210.jung@samsung.com>
Thu, 27 Sep 2018 10:09:33 +0000 (19:09 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Thu, 27 Sep 2018 11:31:21 +0000 (20:31 +0900)
Add log message and remove unnecessary state.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/tensor_mux/gsttensormux.c

index 89cfcc5..faa902f 100644 (file)
@@ -463,8 +463,11 @@ gst_tensor_mux_collected (GstCollectPads * pads, GstTensorMux * tensor_mux)
   }
 
   ret = gst_pad_push (tensor_mux->srcpad, tensors_buf);
-  if (ret != GST_FLOW_OK)
-    goto beach;
+  if (ret != GST_FLOW_OK) {
+    GST_WARNING_OBJECT (tensor_mux, "pushed outbuf, result = %s",
+        gst_flow_get_name (ret));
+    /* fall-through, returns result */
+  }
 beach:
   return ret;
 nego_error: