splitmuxsink: Change EOS catching logic.
authorJan Schmidt <jan@centricular.com>
Sat, 31 Oct 2020 01:49:08 +0000 (12:49 +1100)
committerJan Schmidt <thaytan@noraisin.net>
Sat, 31 Oct 2020 02:50:51 +0000 (02:50 +0000)
commit35cc0df53db545f9f99d911e6ee94dc588c0899e
tree0f387903e79c60e297fe5dd0a3b550f63c8f687d
parentd12fa00195bbbb2111a89873d225c3a0df05faef
splitmuxsink: Change EOS catching logic.

Add a new state for ending the overall stream, and use it to decide
whether to pass the final EOS message up the bus instead of dropping
it. Fixes a small race that makes the testsuite sometimes not generate
the last fragment(s) sometimes because the wrong EOS gets
allowed through too early.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/798>
gst/multifile/gstsplitmuxsink.c
gst/multifile/gstsplitmuxsink.h