Resolve bug related to unused variable
If DBG is defined, this error is raised as the variable is only used
for check silent property when DBG is not defined
Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
silent_debug_caps (caps, "caps");
silent_debug_caps (othercaps, "othercaps");
+ /** Removes no-used-variable warning for priv in when DBG is set */
+ if (priv->fw == NULL) {
+ gst_caps_unref (othercaps);
+ return NULL;
+ }
+
/**
* To get the out-caps, GstTensorFilter has to parse tensor info from NN model.
*/