mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
collectpads2: avoid hanging in case of sparse newsegment events
... in the extent that a non-waiting pad (so indicated by newsegment) turns out to provide the best buffer, which is then forced to waiting for book-keeping purposes, but that should only be temporary. See bug #415754.
This commit is contained in:
parent
2a13275985
commit
ce88f417b1
1 changed files with 5 additions and 0 deletions
|
@ -1544,6 +1544,11 @@ gst_collect_pads2_default_collected (GstCollectPads2 * pads, gpointer user_data)
|
|||
buffer = gst_collect_pads2_pop (pads, best);
|
||||
ret = func (pads, best, buffer, buffer_user_data);
|
||||
|
||||
/* maybe non-waiting was forced to waiting above due to
|
||||
* newsegment events coming too sparsely,
|
||||
* so re-check to restore state to avoid hanging/waiting */
|
||||
gst_collect_pads2_recalculate_full (pads);
|
||||
|
||||
done:
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue