aggregator: Fix locking when using the clock
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 15 Apr 2016 20:51:17 +0000 (16:51 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 26 Apr 2016 10:54:37 +0000 (06:54 -0400)
commitfbd824a2b554e09a6404ce8090050a2a414ec57e
tree590a50f0ac531a70400a4385f69b767de34848d0
parent920ad271226fd6b0606d17bae8f70ac119ca710f
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
gst-libs/gst/base/gstaggregator.c