From 2d8bbf71273fd1f6d084fc61553e330b6ed14806 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 1 May 2008 13:03:51 +0000 Subject: [PATCH] gst/gstregistry.c: Run g_str_has_suffix() only on the file name, not the entire file path. 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 | 6 ++++++ gst/gstregistry.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e7c183b..887c274 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-01 Tim-Philipp Müller + + * 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 * plugins/elements/gstqueue.c: (gst_queue_leak_downstream): diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 3bff5cf..470e74a 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -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, -- 2.7.4