[Subplugin] Do not dlsym if it's already probed.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 29 Jan 2019 09:06:17 +0000 (18:06 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 31 Jan 2019 05:33:35 +0000 (14:33 +0900)
commitaf36a7da7264d0b0936987e412773c1cb7b67f41
treeaa8b69fc18ad75b1226db8e6263b0806aac62f13
parentbb417cbb1b418ff3a3f4c272cd48cc687bbb2cf1
[Subplugin] Do not dlsym if it's already probed.

With dlopen, consturctor function is loaded, which
may call subplugin-probe.

If it has called subplugin-probe, registering the
subplugin to an element (filter/decoder) specific
internal list, we do not need to register it with
nnstreamer_subplugin structure.

- Add an internal API, "hold_register_subplugin", that
notified nnstremer_subplugin that it has probed already.
- Call "hold_register_subplugin" at probe function.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/nnstreamer/nnstreamer_subplugin.c
gst/nnstreamer/nnstreamer_subplugin.h
gst/nnstreamer/tensor_decoder/tensordec-plugins.c
gst/nnstreamer/tensor_filter/tensor_filter.c