videomixer2: Fix race condition where a src setcaps is ignored
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Thu, 13 Sep 2012 00:10:00 +0000 (00:10 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 19 Oct 2012 10:10:31 +0000 (12:10 +0200)
commit13328bc129c1bec86637df561968e75eceddc291
treef280a88878f49445962a6f71a17f1a7fb2f8c053
parent5742352e100f6a28f8ad3871701940da90b324cb
videomixer2: Fix race condition where a src setcaps is ignored

If both pads receive data at the same time, they will both get their
sink_setcaps called which will call the src_setcaps, but there is
a race condition where the second one might not be called.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=683842
gst/videomixer/videomixer2.c
gst/videomixer/videomixer2.h