mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
glshader, tsdemux: simplify code
Jus use _delete_link() instead of _remove_link() + _free1()
This commit is contained in:
parent
02c9247d54
commit
edab4deb3a
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -825,8 +825,7 @@ drain_pending_buffers (MpegTSParse2 * parse, gboolean drain_all)
|
|||
|
||||
/* Free this list node and move to the next */
|
||||
p = g_list_previous (l);
|
||||
parse->pending_buffers = g_list_remove_link (parse->pending_buffers, l);
|
||||
g_list_free_1 (l);
|
||||
parse->pending_buffers = g_list_delete_link (parse->pending_buffers, l);
|
||||
l = p;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue