From 818768af3c6d42b8430505b843ea2f7a4f4dd8ea Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 3 Oct 2005 04:25:54 +0000 Subject: [PATCH] revert last commit Original commit message from CVS: revert last commit --- ext/gnomevfs/gstgnomevfssrc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c index bee1ffa4a3..92914a16b1 100644 --- a/ext/gnomevfs/gstgnomevfssrc.c +++ b/ext/gnomevfs/gstgnomevfssrc.c @@ -106,7 +106,6 @@ typedef struct _GstGnomeVFSSrc gint audiocast_thread_die_outfd; gint audiocast_port; gint audiocast_fd; - GMutex *list_uris_mutex; } GstGnomeVFSSrc; typedef struct _GstGnomeVFSSrcClass @@ -344,16 +343,9 @@ static gchar ** gst_gnomevfssrc_uri_get_protocols (void) { static gchar **protocols = NULL; - static GMutex *mutex = NULL; - if (G_UNLIKELY (!protocols)) { - if (!mutex) - mutex = g_mutex_new (); - - g_mutex_lock (mutex); + if (!protocols) protocols = gst_gnomevfs_get_supported_uris (); - g_mutex_unlock (mutex); - } return protocols; }