adder: send flush_stop when seeking failed

At least do the fix to sent the flush_stop when seeking failed to ensure we
keep no pads flushing. before it was send when the seeking worked which is just
plain wrong and was not the intention.
This commit is contained in:
Stefan Kost 2009-06-15 11:40:00 +03:00
parent 73dd8236ce
commit fd36634f88

View file

@ -677,12 +677,13 @@ gst_adder_src_event (GstPad * pad, GstEvent * event)
event);
result = forward_event (adder, event);
if (result) {
if (!result) {
/* seek failed. maybe source is a live source. send a flush_stop
* FIXME: ideally we just forward flush event, but live sources don't
* send anything and we need a flush events to unlock the collect
* function
*/
GST_DEBUG_OBJECT (adder, "seeking failed, mark pending flush_stop");
adder->flush_stop_pending =
((flags & GST_SEEK_FLAG_FLUSH) == GST_SEEK_FLAG_FLUSH);
}