diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-07-21 18:52:30 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-07-21 18:52:30 +0000 |
commit | 9b55d9b316d111cc1ca6f8129287963ee4dc8b55 (patch) | |
tree | 9adaf057f8b0d30aff8ae15d8865772c7a97ec5b /gst/gstparse.c | |
parent | 912671152fd16c994737c627b0b285d7a627e658 (diff) |
gst/gstparse.c: Also remove reentrance checks if flex is MT save (#348179)
Original commit message from CVS:
* gst/gstparse.c: (gst_parse_launch):
Also remove reentrance checks if flex is MT save (#348179)
Fix my empty ChangeLog entry below
Diffstat (limited to 'gst/gstparse.c')
-rw-r--r-- | gst/gstparse.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gst/gstparse.c b/gst/gstparse.c index 0c27d10c8..705e6806d 100644 --- a/gst/gstparse.c +++ b/gst/gstparse.c @@ -36,10 +36,9 @@ #include "gstparse.h" #include "gstinfo.h" +#ifndef HAVE_MT_SAVE_FLEX /* the need for the mutex will go away with flex 2.5.6 */ static gboolean flex_busy = FALSE; - -#ifndef HAVE_MT_SAVE_FLEX static GStaticRecMutex flex_lock = G_STATIC_REC_MUTEX_INIT; #endif @@ -152,28 +151,28 @@ gst_parse_launch (const gchar * pipeline_description, GError ** error) #ifndef HAVE_MT_SAVE_FLEX g_static_rec_mutex_lock (&flex_lock); -#endif if (flex_busy) goto recursive_call; flex_busy = TRUE; +#endif element = _gst_parse_launch (pipeline_description, error); - flex_busy = FALSE; #ifndef HAVE_MT_SAVE_FLEX + flex_busy = FALSE; g_static_rec_mutex_unlock (&flex_lock); #endif return element; /* ERRORS */ +#ifndef HAVE_MT_SAVE_FLEX recursive_call: { GST_WARNING ("calls to gst_parse_launch() cannot be nested"); -#ifndef HAVE_MT_SAVE_FLEX g_static_rec_mutex_unlock (&flex_lock); -#endif g_warning ("calls to gst_parse_launch() cannot be nested"); return NULL; } +#endif } |