gst/gstregistry.c: Run g_str_has_suffix() only on the file name, not the entire file...
authorTim-Philipp Müller <tim@centricular.net>
Thu, 1 May 2008 13:03:51 +0000 (13:03 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 1 May 2008 13:03:51 +0000 (13:03 +0000)
Original commit message from CVS:
* gst/gstregistry.c: (gst_registry_scan_path_level):
Run g_str_has_suffix() only on the file name, not the
entire file path.

ChangeLog
gst/gstregistry.c

index e7c183b..887c274 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-01  Tim-Philipp Müller  <tim.muller at collabora co uk>
+
+       * gst/gstregistry.c: (gst_registry_scan_path_level):
+         Run g_str_has_suffix() only on the file name, not the
+         entire file path.
+
 2008-04-30  Tim-Philipp Müller  <tim.muller at collabora co uk>
 
        * plugins/elements/gstqueue.c: (gst_queue_leak_downstream):
index 3bff5cf..470e74a 100644 (file)
@@ -829,9 +829,9 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
       g_free (filename);
       continue;
     }
-    if (!g_str_has_suffix (filename, G_MODULE_SUFFIX)
+    if (!g_str_has_suffix (dirent, G_MODULE_SUFFIX)
 #ifdef GST_EXTRA_MODULE_SUFFIX
-        && !g_str_has_suffix (filename, GST_EXTRA_MODULE_SUFFIX)
+        && !g_str_has_suffix (dirent, GST_EXTRA_MODULE_SUFFIX)
 #endif
         ) {
       GST_LOG_OBJECT (registry,