From 718b6b2471cb10ddceadd07a001064e546808d00 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 8 Nov 2012 15:33:01 +1100 Subject: [PATCH] bufferpool: lock before unlock in _get_config Fixes deadlock on Windows Fixes https://bugzilla.gnome.org/show_bug.cgi?id=687896 --- gst/gstbufferpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index ec73907d70..d67912bd6d 100644 --- a/gst/gstbufferpool.c +++ b/gst/gstbufferpool.c @@ -660,7 +660,7 @@ gst_buffer_pool_get_config (GstBufferPool * pool) g_return_val_if_fail (GST_IS_BUFFER_POOL (pool), NULL); - GST_BUFFER_POOL_UNLOCK (pool); + GST_BUFFER_POOL_LOCK (pool); result = gst_structure_copy (pool->priv->config); GST_BUFFER_POOL_UNLOCK (pool);