[Repo] handle empty repo data
authorJaeyun <jy1210.jung@samsung.com>
Thu, 18 Apr 2019 08:22:38 +0000 (17:22 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 8 May 2019 03:09:54 +0000 (12:09 +0900)
commit1d8cae7fdcf9c380fbd907c83a58acadfaf979ba
tree0284e6abed7d499d7dcfe70e13666d1e3af28439
parent1e1497d3ca39398904804c37039936098246f4b3
[Repo] handle empty repo data

If repo has no data or hashtable returns null, this makes exception to set lock or signal.
To prevent this exception, check returned data and handle error case.

Exception case when checking 'gst-inspect-1.0 -a'
tensor-repo made an exception.

TODO: Consider to move repo/reposrc/reposink sources into one directory.
Now tensor-repo is not a common source.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/nnstreamer/tensor_repo.c
gst/nnstreamer/tensor_repo.h