bufferpool: lock before unlock in _get_config

Fixes deadlock on Windows

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=687896
This commit is contained in:
Matthew Waters 2012-11-08 15:33:01 +11:00 committed by Wim Taymans
parent 2e9bc3ba10
commit 718b6b2471

View 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);