From 27c0bc93b73633d5216f2d890da42b26b0a7151c Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 5 Dec 2010 15:58:48 +0100 Subject: [PATCH] basesink: Don't forget to unref the cached ClockId --- libs/gst/base/gstbasesink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 82b618f..7a3fb74 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -4939,6 +4939,10 @@ gst_base_sink_change_state (GstElement * element, GstStateChange transition) priv->current_sstart = GST_CLOCK_TIME_NONE; priv->current_sstop = GST_CLOCK_TIME_NONE; priv->have_latency = FALSE; + if (priv->cached_clock_id) { + gst_clock_id_unref (priv->cached_clock_id); + priv->cached_clock_id = NULL; + } GST_OBJECT_UNLOCK (basesink); gst_base_sink_set_last_buffer (basesink, NULL); -- 2.7.4