bufferpool: lock before unlock in _get_config
authorMatthew Waters <ystreet00@gmail.com>
Thu, 8 Nov 2012 04:33:01 +0000 (15:33 +1100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 8 Nov 2012 08:08:09 +0000 (09:08 +0100)
Fixes deadlock on Windows

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=687896

gst/gstbufferpool.c

index ec73907..d67912b 100644 (file)
@@ -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);