bufferlist: foreach: always remove as parent if buffer is changed
authorMiguel Paris <mparisdiaz@gmail.com>
Tue, 3 Mar 2020 14:36:26 +0000 (15:36 +0100)
committerMiguel Paris <mparisdiaz@gmail.com>
Wed, 18 Mar 2020 13:43:08 +0000 (14:43 +0100)
commit2ef0fd18626a2dbe1b998fd06bc5eeeea6583005
treed204755e8f906b7edf199bd50bc66b2690e65930
parent1e9dcac0fb7d1b5365950f3438eba72d0539fc8e
bufferlist: foreach: always remove as parent if buffer is changed

In case the buffer is not writable, the parent (the BufferList) is not
removed before calling func. So if it is changed, the parent (the BufferList)
of the previous buffer should be removed after calling func.
gst/gstbufferlist.c
tests/check/gst/gstbufferlist.c