From: Tim-Philipp Müller Date: Fri, 6 Nov 2015 12:31:09 +0000 (+0000) Subject: glshader, tsdemux: simplify code X-Git-Tag: 1.19.3~507^2~7634 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edab4deb3a3eed7fd93b745aa9708eea5dd86572;p=platform%2Fupstream%2Fgstreamer.git glshader, tsdemux: simplify code Jus use _delete_link() instead of _remove_link() + _free1() --- diff --git a/gst-libs/gst/gl/gstglshader.c b/gst-libs/gst/gl/gstglshader.c index fdaf2fc..cbd300d 100644 --- a/gst-libs/gst/gl/gstglshader.c +++ b/gst-libs/gst/gl/gstglshader.c @@ -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); } /** diff --git a/gst/mpegtsdemux/mpegtsparse.c b/gst/mpegtsdemux/mpegtsparse.c index 743da4f..6e4faf5 100644 --- a/gst/mpegtsdemux/mpegtsparse.c +++ b/gst/mpegtsdemux/mpegtsparse.c @@ -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; }