parsebin: Clear drained mark with FLUSH_STOP
Submitted by Seungha Yang
Link to original bug (#777522)
Description
A demuxer might re-expose source pads during playback
(e.g., program update in tsdemux).
When pads are re-exposed, EOS event will be pushed to the old source
pads by demuxer, and group switching is triggered by the EOS event.
Note that the EOS will mark "drained" to chain/group and
parsebin refers to the "drained" marks for chain/group switching.
However, since the "drained" marks never be cleared once it was set,
following sequence cannot be handled
- demuxer pushed EOS and parsebin marked the chain/group as drained
- seek event happened
- demuxer source pads are re-exposed
To handle above case, "drained" marks should be cleared by flush-stop