mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
basesink: Don't forget to unref the cached ClockId
This commit is contained in:
parent
4525a405d5
commit
27c0bc93b7
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue