mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
appsink: unref the preroll buffer and cleanup the segments on stop()
Just for consistency. No need to keep data around.
This commit is contained in:
parent
c3e4d8ca6f
commit
897371ac4f
1 changed files with 3 additions and 0 deletions
|
@ -538,8 +538,11 @@ gst_app_sink_stop (GstBaseSink * psink)
|
||||||
priv->flushing = TRUE;
|
priv->flushing = TRUE;
|
||||||
priv->started = FALSE;
|
priv->started = FALSE;
|
||||||
gst_app_sink_flush_unlocked (appsink);
|
gst_app_sink_flush_unlocked (appsink);
|
||||||
|
gst_buffer_replace (&priv->preroll, NULL);
|
||||||
gst_caps_replace (&priv->preroll_caps, NULL);
|
gst_caps_replace (&priv->preroll_caps, NULL);
|
||||||
gst_caps_replace (&priv->last_caps, NULL);
|
gst_caps_replace (&priv->last_caps, NULL);
|
||||||
|
gst_segment_init (&priv->preroll_segment, GST_FORMAT_UNDEFINED);
|
||||||
|
gst_segment_init (&priv->last_segment, GST_FORMAT_UNDEFINED);
|
||||||
g_mutex_unlock (&priv->mutex);
|
g_mutex_unlock (&priv->mutex);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue