glshader, tsdemux: simplify code

Jus use _delete_link() instead of _remove_link() + _free1()
This commit is contained in:
Tim-Philipp Müller 2015-11-06 12:31:09 +00:00
parent 212ed5523b
commit 7a166e019b

View file

@ -408,9 +408,8 @@ gst_gl_shader_detach_unlocked (GstGLShader * shader, GstGLSLStage * stage)
shader->priv->vtable.DetachShader (shader->priv->program_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);
g_list_free_1 (elem);
}
/**