diff options
author | Thibault Saunier <thibault.saunier@collabora.co.uk> | 2011-04-06 08:50:25 -0400 |
---|---|---|
committer | Alessandro Decina <alessandro.d@gmail.com> | 2011-04-06 14:49:12 +0200 |
commit | 2bbcd6d87aa54f346eb7af5cbef22cc745f483cc (patch) | |
tree | 18fe3499bdf1710ef93b43dfba5388d0a103c98d | |
parent | 60cd85b76cd115ca8d4696a0daf9641053e3d5c8 (diff) |
Set the GST_REGISTRY variable so the registry cache is saved
-rwxr-xr-x | gstplayer/GstDriver.cpp | 1 | ||||
-rw-r--r-- | gstplayer/GstMetadataRetrieverDriver.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gstplayer/GstDriver.cpp b/gstplayer/GstDriver.cpp index 7410de2..029f6d1 100755 --- a/gstplayer/GstDriver.cpp +++ b/gstplayer/GstDriver.cpp @@ -982,6 +982,7 @@ GstDriver::init_gstreamer () LOGV ("route the trace to %s", trace); setenv ("GST_DEBUG_FILE", trace, 1); + setenv ("GST_REGISTRY", "/data/data/gstreamer/registry.bin", 0); LOGV ("gstreamer init check"); if (!gst_init_check (NULL, NULL, &err)) { LOGE ("Could not initialize GStreamer: %s\n", diff --git a/gstplayer/GstMetadataRetrieverDriver.cpp b/gstplayer/GstMetadataRetrieverDriver.cpp index f648538..86dc175 100644 --- a/gstplayer/GstMetadataRetrieverDriver.cpp +++ b/gstplayer/GstMetadataRetrieverDriver.cpp @@ -679,6 +679,7 @@ void GstMetadataRetrieverDriver::init_gstreamer() LOGV("route the trace to %s", trace); setenv ("GST_DEBUG_FILE", trace, true); + setenv ("GST_REGISTRY", "/data/data/gstreamer/registry.bin", 0); LOGV("gstreamer init check"); if(!gst_init_check (NULL, NULL, &err)) |