plugin: API: GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_RELATIVE_TO_EXE
authorMathieu Duponchelle <mathieu@centricular.com>
Mon, 25 Sep 2017 18:35:59 +0000 (20:35 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Tue, 26 Sep 2017 11:12:00 +0000 (13:12 +0200)
commit6cddce7663cb4b6ee061950d20365f42cb755851
tree9fb0404f1f2366214f3769bac801c3a1ddcddc1b
parent0c614a0bd3f228ea252ffd4db4190c0f3af3becc
plugin: API: GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_RELATIVE_TO_EXE

When a plugin declares a dependency using this flag, all the
relative paths are considered to be relative to the path of
the main executable.

We try to determine the path of the executable portably,
with implementations provided for Linux, Windows and Mac.

If retrieval of the path fails, we will not detect changes.

In order for the main executable path to be the same when
scanning a plugin in a child process, a new variable is
exposed in gst_private.h, _gst_executable_path

https://bugzilla.gnome.org/show_bug.cgi?id=788152
gst/gst.c
gst/gst_private.h
gst/gstplugin.c
gst/gstplugin.h
gst/gstpluginloader.c
libs/gst/helpers/gst-plugin-scanner.c
win32/common/libgstreamer.def