tee: make release_pad threadsafe
authorHåvard Graff <havard.graff@tandberg.com>
Mon, 11 Jan 2010 10:38:32 +0000 (11:38 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Jan 2010 10:55:52 +0000 (11:55 +0100)
commita3c4a3201a705eb1934ceeea34d1ca42d4571c07
treee61b554834bb03dcd03df3680a92fdc933de7ebd
parent2da06fb8d34b4c655524ec285303bfcc4caea308
tee: make release_pad threadsafe

Protect the ->removed field with the object lock as well. Take the DYN lock
earlier so that we can mark the pad removed and avoid a race in pad_alloc.

Fixes #606435
plugins/elements/gsttee.c