summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e694f5e)
When the foreach function told us to remove the buffer from the list, decrease
the length of the array or else we might read past the last item in the array.
if (buf != buf_ret) {
if (buf_ret == NULL) {
g_array_remove_index (list->array, i);
if (buf != buf_ret) {
if (buf_ret == NULL) {
g_array_remove_index (list->array, i);
} else {
g_array_index (list->array, GstBuffer *, i) = buf_ret;
}
} else {
g_array_index (list->array, GstBuffer *, i) = buf_ret;
}