[Coverity] fix coverity issues
authorJaeyun <jy1210.jung@samsung.com>
Fri, 22 Jan 2021 06:34:52 +0000 (15:34 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 25 Jan 2021 02:27:17 +0000 (11:27 +0900)
commitbf4d8645f26f7d502f161175bf4b459c70ed1cbe
tree23fb5150c3f3ebb760e41877b19cf23db51f7591
parent31e4f5070ceccc17aacb41028dc5dc15cc306029
[Coverity] fix coverity issues

1. handle error case when failed to map the gst buffer.
2. init variable in cls constructor.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
api/capi/src/nnstreamer-capi-pipeline.c
ext/nnstreamer/tensor_filter/tensor_filter_pytorch.cc
gst/nnstreamer/tensor_converter/tensor_converter.c
gst/nnstreamer/tensor_if/gsttensorif.c