ds gstreamer: gstreamer/ gstreamer/gst/

[email protected] Fri, 5 Dec 2008 12:32:18 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gstreamer
Changes by:     ds
Date:           Fri Dec 05 2008  20:32:18 UTC

Log message:
* gst/gst.c:
Search for plugins on win32 based on the location of the
gstreamer DLL.  Fixes #548786

Modified files:
    .               : ChangeLog
    gst             : gst.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.4181&r2=1.4182
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gst.c.diff?r1=1.266&r2=1.267

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v
retrieving revision 1.4181
retrieving revision 1.4182
diff -u -d -r1.4181 -r1.4182
--- ChangeLog	4 Dec 2008 20:10:39 -0000	1.4181
+++ ChangeLog	5 Dec 2008 20:32:01 -0000	1.4182
@@ -1,3 +1,9 @@
+2008-12-05  David Schleef  <[email protected]>
+
+	* gst/gst.c:
+	Search for plugins on win32 based on the location of the
+	gstreamer DLL.  Fixes #548786
 2008-12-04  Sebastian Dröge  <[email protected]>
 
 	* configure.ac:
Index: gst.c
RCS file: /cvs/gstreamer/gstreamer/gst/gst.c,v
retrieving revision 1.266
retrieving revision 1.267
diff -u -d -r1.266 -r1.267
--- gst.c	7 Aug 2008 15:49:00 -0000	1.266
+++ gst.c	5 Dec 2008 20:32:03 -0000	1.267
@@ -719,6 +719,24 @@
     /* add the main (installed) library path */
     GST_DEBUG ("scanning main plugins %s", PLUGINDIR);
     changed |= gst_registry_scan_path (default_registry, PLUGINDIR);
+#ifdef G_PLATFORM_WIN32
+    {
+      char *base_dir;
+      char *dir;
+      base_dir = g_win32_get_package_installation_directory (NULL,
+          "libgstreamer-0.10-0.dll");
+      dir = g_build_filename (base_dir, "lib", "gstreamer-0.10", NULL);
+      GST_DEBUG ("scanning DLL dir %s", dir);
+      changed |= gst_registry_scan_path (default_registry, dir);
+      g_free (dir);
+      g_free (base_dir);
+    }
+#endif
   } else {
     gchar **list;
     gint i;

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose