basesink: Don't forget to unref the cached ClockId

This commit is contained in:
Edward Hervey 2010-12-05 15:58:48 +01:00
parent 4525a405d5
commit 27c0bc93b7

View file

@ -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);