mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
glshader, tsdemux: simplify code
Jus use _delete_link() instead of _remove_link() + _free1()
This commit is contained in:
parent
212ed5523b
commit
7a166e019b
1 changed files with 1 additions and 2 deletions
|
@ -408,9 +408,8 @@ gst_gl_shader_detach_unlocked (GstGLShader * shader, GstGLSLStage * stage)
|
||||||
shader->priv->vtable.DetachShader (shader->priv->program_handle,
|
shader->priv->vtable.DetachShader (shader->priv->program_handle,
|
||||||
stage_handle);
|
stage_handle);
|
||||||
|
|
||||||
shader->priv->stages = g_list_remove_link (shader->priv->stages, elem);
|
shader->priv->stages = g_list_delete_link (shader->priv->stages, elem);
|
||||||
gst_object_unref (stage);
|
gst_object_unref (stage);
|
||||||
g_list_free_1 (elem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue