summaryrefslogtreecommitdiff
path: root/gst/gstplugin.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-10-08 13:57:17 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-10-08 13:57:17 +0000
commit871217319ac9a8e8c49462a0f93bdecdee773985 (patch)
treee52a0d6142fecd3786c39bef570904e840311558 /gst/gstplugin.h
parent5d5dbe9bc0793a699343c5475faf458584db9715 (diff)
downloadgstreamer-871217319ac9a8e8c49462a0f93bdecdee773985.tar.gz
gst/: Only ever load one plugin for a given plugin basename.
Original commit message from CVS: * gst/gstplugin.c: (gst_plugin_finalize), (gst_plugin_load_file): * gst/gstplugin.h: * gst/gstregistry.c: (gst_registry_lookup_locked), (gst_registry_scan_path_level): * gst/gstregistryxml.c: (load_plugin): Only ever load one plugin for a given plugin basename. This ensures correct overriding of GST_PLUGIN_PATH over GST_PLUGIN_SYSTEM_PATH and of home dir plugins over system installed plugins.
Diffstat (limited to 'gst/gstplugin.h')
-rw-r--r--gst/gstplugin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/gstplugin.h b/gst/gstplugin.h
index 9213af64fc..40a8baebaf 100644
--- a/gst/gstplugin.h
+++ b/gst/gstplugin.h
@@ -142,11 +142,14 @@ struct _GstPlugin {
unsigned int flags;
gchar * filename;
+ gchar * basename; /* base name (non-dir part) of plugin path */
GModule * module; /* contains the module if plugin is loaded */
size_t file_size;
time_t file_mtime;
+ gboolean registered; /* TRUE when the registry has seen a filename
+ * that matches the plugin's basename */
gpointer _gst_reserved[GST_PADDING];
};