[SVACE] Fix Issue WGID 414649 accepted/tizen/unified/20190425.014439 submit/tizen/20190424.061404 submit/trunk/20190424.060556
authorjijoong.moon <jijoong.moon@samsung.com>
Tue, 23 Apr 2019 09:37:31 +0000 (18:37 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 23 Apr 2019 12:47:45 +0000 (21:47 +0900)
commit4fc36111ac506f374e8f9bf134ad4bb178062f8c
treef0f5a56e4cbab4787b433b2bdd8b9b56a40565d6
parentf33d258efa3bce4a6eaa943efd97ba4b6a167b5d
[SVACE] Fix Issue WGID 414649

Threre is svace issue said:

WID:66310927 Return value of a function 'gst_buffer_get_meta' is
dereferenced at tensor_reposrc.c:338 without checking, but it is
usually checked for this function (20/21).

Add check if the meta is null and arise the error.

**Self evaluation:**
1. Build test:  [X]Passed [ ]Failed [ ]Skipped
2. Run test:  [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
gst/nnstreamer/tensor_reposrc/tensor_reposrc.c