aggregator: Take lock to ensure set_caps is not called concurently
authorThibault Saunier <tsaunier@gnome.org>
Fri, 3 Oct 2014 10:34:15 +0000 (12:34 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:25 +0000 (15:10 +0000)
commitcc14d18e08bf58c928a1fad39c73c295caa645a1
tree3ba4ea130d01565634e0fa2aaebb1af29bf766f2
parent1a0b4f88c2bc7951c0c0db6a972e7c2b572dfd2a
aggregator: Take lock to ensure set_caps is not called concurently

Avoiding to be in an inconsistent state where we do not have
actual negotiate caps set as srccaps and leading to point where we
try to unref ->srccaps when they have already been set to NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=735042
libs/gst/base/gstaggregator.c