diff --git a/gst/Makefile.am b/gst/Makefile.am index 24da79a85d..77a38aba81 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -139,7 +139,8 @@ BUILT_SOURCES = gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC) libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = -D_GNU_SOURCE \ $(GST_CFLAGS) \ -DG_LOG_DOMAIN=g_log_domain_gstreamer \ - -DGST_CACHE_DIR=\""$(GST_CACHE_DIR)"\" + -DGST_CACHE_DIR=\""$(GST_CACHE_DIR)"\" \ + -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" libgstreamer_@GST_MAJORMINOR@_la_LIBADD = $(LIBGST_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD) libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ diff --git a/gst/gstregistry.h b/gst/gstregistry.h index 75493f3dce..f639ef3d82 100644 --- a/gst/gstregistry.h +++ b/gst/gstregistry.h @@ -30,7 +30,7 @@ #define GLOBAL_REGISTRY_FILE GLOBAL_REGISTRY_DIR"/registry.xml" #define GLOBAL_REGISTRY_FILE_TMP GLOBAL_REGISTRY_DIR"/.registry.xml.tmp" -#define LOCAL_REGISTRY_DIR ".gstreamer" +#define LOCAL_REGISTRY_DIR ".gstreamer-"GST_MAJORMINOR #define LOCAL_REGISTRY_FILE LOCAL_REGISTRY_DIR"/registry.xml" #define LOCAL_REGISTRY_FILE_TMP LOCAL_REGISTRY_DIR"/.registry.xml.tmp" diff --git a/tools/gst-register.c b/tools/gst-register.c index 726126edd3..8a445e45e7 100644 --- a/tools/gst-register.c +++ b/tools/gst-register.c @@ -81,7 +81,10 @@ int main (int argc,char *argv[]) G_CALLBACK (plugin_added_func), NULL); if (registry->flags & GST_REGISTRY_WRITABLE) { - g_print ("rebuilding %s\n", registry->name); + char *location; + g_object_get (registry, "location", &location, NULL); + g_print ("rebuilding %s (%s)\n", registry->name, location); + g_free (location); gst_registry_rebuild (registry); gst_registry_save (registry); }