Subplugin infra: dlclose & free handles at exit
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 21 Jan 2020 01:17:58 +0000 (10:17 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 10 Feb 2020 10:05:43 +0000 (19:05 +0900)
commit6ef8fef04255974080830a58a05b21cdfa3c32ee
tree4f6831ef700bc612ad201de441383f3ef2cc6f35
parent44bf445b8f8e6e2bb1ad304b786534bd97781131
Subplugin infra: dlclose & free handles at exit

We need to hold ALL handles if the pipeline is not closed.
However, after the pipeline is closed, all the handles must be
dlclosed; otherwise, the application may hold unnecessary
resources during the execution.

Changes in v2:
- Use g_ptr_array instead of garray.
Changes in v3:
- Added workaround for dlclose-racing bug of GLIBC 2.23 (Ubuntu 16.04)

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