aggregator: Make the PAD_LOCK private
authorThibault Saunier <tsaunier@gnome.org>
Mon, 26 Jan 2015 10:29:08 +0000 (11:29 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
commitae12041f0c3dfeed3a721a30de1fff165787e098
tree12e8e8affadf930c79301cde6538641d67203f46
parent5f176b724b9363e2bc33bd31821dc6da1b1b1453
aggregator: Make the PAD_LOCK private

Instead of using the GST_OBJECT_LOCK we should have
a dedicated mutex for the pad as it is also associated
with the mutex on the EVENT_MUTEX on which we wait
in the _chain function of the pad.

The GstAggregatorPad.segment is still protected with the
GST_OBJECT_LOCK.

Remove the gst_aggregator_pad_peak_unlocked method as it does not make
sense anymore with a private lock.

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