mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
MacOS has plugins under .so or under .dylib. Add detection for MacOS and handle this case.
Original commit message from CVS: * configure.ac: * gst/gstregistry.c: MacOS has plugins under .so or under .dylib. Add detection for MacOS and handle this case. * gst/gst.c: Add a comment here describing, why we stat each plugin and not try to be smart.
This commit is contained in:
parent
cd62b1a3b4
commit
b4c170a205
4 changed files with 31 additions and 3 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2008-03-31 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
* gst/gstregistry.c:
|
||||||
|
MacOS has plugins under .so or under .dylib. Add detection for MacOS
|
||||||
|
and handle this case.
|
||||||
|
|
||||||
|
* gst/gst.c:
|
||||||
|
Add a comment here describing, why we stat each plugin and not try to
|
||||||
|
be smart.
|
||||||
|
|
||||||
2008-03-31 Sebastian Dröge <slomo@circular-chaos.org>
|
2008-03-31 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* libs/gst/base/gstbasetransform.c:
|
* libs/gst/base/gstbasetransform.c:
|
||||||
|
|
|
@ -223,6 +223,15 @@ else
|
||||||
fi
|
fi
|
||||||
AC_SUBST(GST_HAVE_UNALIGNED_ACCESS_DEFINE)
|
AC_SUBST(GST_HAVE_UNALIGNED_ACCESS_DEFINE)
|
||||||
|
|
||||||
|
dnl check for extra platform specific plugin suffixes
|
||||||
|
case $host_os in
|
||||||
|
darwin* | rhapsody*)
|
||||||
|
AC_DEFINE_UNQUOTED(GST_EXTRA_MODULE_SUFFIX, [.dylib], [Extra platform specific plugin suffix])
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
dnl * software *
|
dnl * software *
|
||||||
|
|
||||||
dnl check for large file support
|
dnl check for large file support
|
||||||
|
|
|
@ -656,13 +656,17 @@ scan_and_update_registry (GstRegistry * default_registry,
|
||||||
gboolean changed = FALSE;
|
gboolean changed = FALSE;
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
GST_INFO ("Validating registry cache");
|
GST_INFO ("Validating registry cache: %s", registry_file);
|
||||||
|
/* It sounds tempting to just compare the mtime of directories with the mtime
|
||||||
|
* of the registry cache, but it does not work. It would not catch updated
|
||||||
|
* plugins, which might bring more or less features.
|
||||||
|
*/
|
||||||
|
|
||||||
/* scan paths specified via --gst-plugin-path */
|
/* scan paths specified via --gst-plugin-path */
|
||||||
GST_DEBUG ("scanning paths added via --gst-plugin-path");
|
GST_DEBUG ("scanning paths added via --gst-plugin-path");
|
||||||
for (l = plugin_paths; l != NULL; l = l->next) {
|
for (l = plugin_paths; l != NULL; l = l->next) {
|
||||||
GST_INFO ("Scanning plugin path: \"%s\"", (gchar *) l->data);
|
GST_INFO ("Scanning plugin path: \"%s\"", (gchar *) l->data);
|
||||||
/* CHECKME: add changed |= here as well? */
|
/* FIXME: add changed |= here as well? */
|
||||||
gst_registry_scan_path (default_registry, (gchar *) l->data);
|
gst_registry_scan_path (default_registry, (gchar *) l->data);
|
||||||
}
|
}
|
||||||
/* keep plugin_paths around in case a re-scan is forced later on */
|
/* keep plugin_paths around in case a re-scan is forced later on */
|
||||||
|
|
|
@ -828,7 +828,11 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!g_str_has_suffix (filename, G_MODULE_SUFFIX)) {
|
if (!g_str_has_suffix (filename, G_MODULE_SUFFIX)
|
||||||
|
#ifdef GST_EXTRA_MODULE_SUFFIX
|
||||||
|
|| !g_str_has_suffix (filename, GST_EXTRA_MODULE_SUFFIX)
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
GST_LOG_OBJECT (registry,
|
GST_LOG_OBJECT (registry,
|
||||||
"extension is not recognized as module file, ignoring");
|
"extension is not recognized as module file, ignoring");
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
|
|
Loading…
Reference in a new issue