mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
[813/906] unref the pool on shutdown
This commit is contained in:
parent
711ad485b2
commit
fa02b04292
1 changed files with 12 additions and 0 deletions
|
@ -1010,6 +1010,8 @@ gst_gl_mixer_set_allocation (GstGLMixer * mix,
|
||||||
GstQuery *oldquery;
|
GstQuery *oldquery;
|
||||||
GstGLMixerPrivate *priv = mix->priv;
|
GstGLMixerPrivate *priv = mix->priv;
|
||||||
|
|
||||||
|
GST_DEBUG ("storing allocation query");
|
||||||
|
|
||||||
GST_OBJECT_LOCK (mix);
|
GST_OBJECT_LOCK (mix);
|
||||||
oldpool = priv->pool;
|
oldpool = priv->pool;
|
||||||
priv->pool = pool;
|
priv->pool = pool;
|
||||||
|
@ -2171,6 +2173,16 @@ gst_gl_mixer_change_state (GstElement * element, GstStateChange transition)
|
||||||
walk = walk->next;
|
walk = walk->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mix->priv->query) {
|
||||||
|
gst_query_unref (mix->priv->query);
|
||||||
|
mix->priv->query = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mix->priv->pool) {
|
||||||
|
gst_object_unref (mix->priv->pool);
|
||||||
|
mix->priv->pool = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (mix->display) {
|
if (mix->display) {
|
||||||
gst_object_unref (mix->display);
|
gst_object_unref (mix->display);
|
||||||
mix->display = NULL;
|
mix->display = NULL;
|
||||||
|
|
Loading…
Reference in a new issue