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.
This commit is contained in:
Tim-Philipp Müller 2008-05-01 13:03:51 +00:00
parent 449a426169
commit 2d8bbf7127
2 changed files with 8 additions and 2 deletions

View file

@ -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> 2008-04-30 Tim-Philipp Müller <tim.muller at collabora co uk>
* plugins/elements/gstqueue.c: (gst_queue_leak_downstream): * plugins/elements/gstqueue.c: (gst_queue_leak_downstream):

View file

@ -829,9 +829,9 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
g_free (filename); g_free (filename);
continue; continue;
} }
if (!g_str_has_suffix (filename, G_MODULE_SUFFIX) if (!g_str_has_suffix (dirent, G_MODULE_SUFFIX)
#ifdef GST_EXTRA_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 #endif
) { ) {
GST_LOG_OBJECT (registry, GST_LOG_OBJECT (registry,