mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
iterator: Properly copy mutexes around when creating a copy of a filter iterator
This commit is contained in:
parent
af84535569
commit
bac1202cf7
1 changed files with 2 additions and 0 deletions
|
@ -503,6 +503,8 @@ static void
|
|||
filter_copy (const GstIteratorFilter * it, GstIteratorFilter * copy)
|
||||
{
|
||||
copy->slave = gst_iterator_copy (it->slave);
|
||||
copy->master_lock = copy->slave->lock ? copy->slave->lock : it->master_lock;
|
||||
copy->slave->lock = NULL;
|
||||
|
||||
if (it->have_user_data) {
|
||||
memset (©->user_data, 0, sizeof (copy->user_data));
|
||||
|
|
Loading…
Reference in a new issue