clock: Keep weak reference to underlying clock
authorThomas Bluemel <tbluemel@control4.com>
Thu, 8 Sep 2016 14:49:54 +0000 (08:49 -0600)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 3 Nov 2018 17:00:22 +0000 (19:00 +0200)
commit36ab067905fffdd405aa12c6c5bce00e7a7b9b09
tree860a8d2edf389ba089b370e67de3211b5012a246
parent8abe052590cd09dbafa98b7de3d5947544e73d7d
clock: Keep weak reference to underlying clock

Fixes potential segmentation fault when using a GstClockID that
is referencing an already freed GstClock

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/187
gst/gstclock.c
gst/gstclock.h
libs/gst/base/gstbasesink.c