gstbuffer: fix meta removal in gst_buffer_foreach_meta
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 6 Oct 2017 19:59:03 +0000 (21:59 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Wed, 11 Oct 2017 17:57:04 +0000 (19:57 +0200)
commite838007d096cefd0f500cde86a4ca550930ca40b
treeb03324d9fbd43e97d89055ca9c9166e12c15d158
parent6617b01af92b72f5ee348be111bf3a2bb2288ea1
gstbuffer: fix meta removal in gst_buffer_foreach_meta

When updating the linked list, prev->next = next is correct
if prev is actually updated after being set to the head
of the list at the start.

https://bugzilla.gnome.org/show_bug.cgi?id=788617
gst/gstbuffer.c
tests/check/gst/gstmeta.c