mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
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:
parent
2e9bc3ba10
commit
718b6b2471
1 changed files with 1 additions and 1 deletions
|
@ -660,7 +660,7 @@ gst_buffer_pool_get_config (GstBufferPool * pool)
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_BUFFER_POOL (pool), NULL);
|
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);
|
result = gst_structure_copy (pool->priv->config);
|
||||||
GST_BUFFER_POOL_UNLOCK (pool);
|
GST_BUFFER_POOL_UNLOCK (pool);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue