[gst-cvs] gst-plugins-base: adder: send flush_stop when seeking failed
Stefan Kost
ensonic at kemper.freedesktop.org
Mon Jun 15 01:47:32 PDT 2009
Module: gst-plugins-base
Branch: master
Commit: fd36634f88bf08cc98dc490a288842f939e1058a
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=fd36634f88bf08cc98dc490a288842f939e1058a
Author: Stefan Kost <ensonic at users.sf.net>
Date: Mon Jun 15 11:40:00 2009 +0300
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.
---
gst/adder/gstadder.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c
index b367ebd..e98febd 100644
--- a/gst/adder/gstadder.c
+++ b/gst/adder/gstadder.c
@@ -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);
}
More information about the Gstreamer-commits
mailing list