mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +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;
|
||||
GstGLMixerPrivate *priv = mix->priv;
|
||||
|
||||
GST_DEBUG ("storing allocation query");
|
||||
|
||||
GST_OBJECT_LOCK (mix);
|
||||
oldpool = priv->pool;
|
||||
priv->pool = pool;
|
||||
|
@ -2171,6 +2173,16 @@ gst_gl_mixer_change_state (GstElement * element, GstStateChange transition)
|
|||
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) {
|
||||
gst_object_unref (mix->display);
|
||||
mix->display = NULL;
|
||||
|
|
Loading…
Reference in a new issue