aggregator: Fix locking when using the clock
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 15 Apr 2016 20:51:17 +0000 (16:51 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
commita1e69783e5512f2c8d76c1b0c373d77fdcb48c9a
treec36b798ff80133258dc1a8ea9fd033ff85c4031a
parentc9502ff3fc7c92e4113818fe559bc00fc7eafc41
aggregator: Fix locking when using the clock

This fixes a race where we check if there is a clock, then it get
removed and we endup calling gst_clock_new_single_shot_id() with a NULL
pointer instead of a valid clock and also calling gst_object_unref()
with a NULL pointer later.

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