streamsynchronizer: Ignore flushing streams [..]
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Sat, 9 Jan 2016 03:35:23 +0000 (04:35 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 16 Jan 2016 10:05:13 +0000 (11:05 +0100)
commit2717f4a86f3afa8a1cc5d4399b11e4cbab631944
tree19e17e94f25ad0ebfe6ae7dfe87c5946246b9503
parentfccf83e69f108fd1bdc10b785761c54d3f413b36
streamsynchronizer: Ignore flushing streams [..]

[..] when resetting group start time. In GES, we are usually connected
to the streamsynchronizer on one audio and one video pad.

When seeking the timeline, both nlecompositions often output their flush_start
before any of them has output its flush_stop.

The current code, when receiving the first flush stop was using the
running time of the start of the second composition, which could
be pretty much anything, and means nothing at that point.

This patch is thread-safe, as STREAM_SYNCHRONIZER_LOCK is taken
both when setting flushing and when checking it.

https://bugzilla.gnome.org/show_bug.cgi?id=750013
gst/playback/gststreamsynchronizer.c