videomixer: Do not send flush_stop when receiving a seek
authorThibault Saunier <thibault.saunier@collabora.com>
Sun, 5 May 2013 19:25:20 +0000 (20:25 +0100)
committerThibault Saunier <thibault.saunier@collabora.com>
Sun, 19 May 2013 13:28:04 +0000 (09:28 -0400)
commit718f9004d09d2102a94ee1316671e51b0f89388c
treec407134f62102b9adff2bc94e23e9b33799b1116
parent85b6852deb21aef6cb64912cdbfc4f630ec555dc
videomixer: Do not send flush_stop when receiving a seek

There is no reason to send a flush-stop when receiving a seek event.
In the case of a flushing seek, we could eventually want to, but in
the code path were we check if the seek is "flushing", we have the
following comment that makes sense:

"we can't send FLUSH_STOP here since upstream could start pushing data
after we unlock mix->collect.
We set flush_stop_pending to TRUE instead and send FLUSH_STOP after
forwarding the seek upstream or from gst_videomixer_collected,
whichever happens first."

https://bugzilla.gnome.org/show_bug.cgi?id=684237
gst/videomixer/videomixer2.c