mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
73dd8236ce
commit
fd36634f88
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue