collectpads: When seek flushed, immediately set eospads to 0
authorMathieu Duponchelle <mduponchelle1@gmail.com>
Wed, 19 Feb 2014 01:27:36 +0000 (02:27 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 16 Mar 2014 17:15:17 +0000 (18:15 +0100)
commitd784d59262ebe93d0f7109a5bc2bc59d0f185067
tree8d43a3988d9dc4ed83ff69bd38f4b2f25da85f53
parent595481c75903e8efdffbcc26a99b5743438b9a66
collectpads: When seek flushed, immediately set eospads to 0

This prevents situations where a first branch would get seeked and
receive a buffer before all branches got seeked, and thus collected
would get called based on EOS from the previous segment.

As a consequence, during the process of seeking, don't decrease
the eospads number when a FLUSH_STOP is received.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=724571
libs/gst/base/gstcollectpads.c