mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
aggregator: fix iteration direction in skip_buffers
Subclasses use the pad segment to determine whether a buffer should be skipped, we thus don't want to check if a buffer needs to be skipped before processing the segment it's part of. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/646>
This commit is contained in:
parent
e9e2069de5
commit
eed0e22020
1 changed files with 3 additions and 3 deletions
|
@ -814,9 +814,9 @@ gst_aggregator_pad_skip_buffers (GstElement * self, GstPad * epad,
|
|||
|
||||
PAD_LOCK (aggpad);
|
||||
|
||||
item = g_queue_peek_head_link (&aggpad->priv->data);
|
||||
item = g_queue_peek_tail_link (&aggpad->priv->data);
|
||||
while (item) {
|
||||
GList *next = item->next;
|
||||
GList *prev = item->prev;
|
||||
|
||||
if (GST_IS_BUFFER (item->data)
|
||||
&& klass->skip_buffer (aggpad, agg, item->data)) {
|
||||
|
@ -828,7 +828,7 @@ gst_aggregator_pad_skip_buffers (GstElement * self, GstPad * epad,
|
|||
break;
|
||||
}
|
||||
|
||||
item = next;
|
||||
item = prev;
|
||||
}
|
||||
|
||||
PAD_UNLOCK (aggpad);
|
||||
|
|
Loading…
Reference in a new issue