splitmuxsink: Fix for 'reference bytes muxed' check.
authorJan Schmidt <jan@centricular.com>
Tue, 8 Dec 2020 13:40:52 +0000 (00:40 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 11 Dec 2020 16:28:19 +0000 (03:28 +1100)
commitd7a9a844f6b0b42fe6a8976eded97c288019fa49
tree0ce4d93ec594949f310682e0b914ad818146480b
parent67f70af1bb7694044e663ff883e531a2cb308910
splitmuxsink: Fix for 'reference bytes muxed' check.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/798
introduced a check in the need-new-fragment logic to avoid starting a
new fragment unless there has been some data on the reference stream,
but the check is done against the number of bytes that have been
received on the input, not the number that were released for output
into the current fragment.

Fix the check to remember and test against bytes that have been sent
for output.

This also fixes a problem where starting a new fragment fails to
request a new filename from the format-location signal.

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