Revert "multifilesink: streamline the file-switch code a bit"
authorTim-Philipp Müller <tim@centricular.com>
Tue, 27 Sep 2016 09:23:38 +0000 (10:23 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 27 Sep 2016 09:23:38 +0000 (10:23 +0100)
commit023998dd76b449440d267d689d578ae3e7a1bdbd
tree03ef16130dc06dd5c2cd9410ce5d34e810b80070
parent6ab88a7f78839e7931afc726d5e8ff42bacf42e1
Revert "multifilesink: streamline the file-switch code a bit"

This reverts commit f1ceaab02f3f557e23b77b14771a575788f92bb4.

This broke atomic file writes in "buffer" mode. It did make
sure that any streamheaders are prepended to each file in
buffer mode as well, but that's not really needed in practice,
whereas atomic file writes are, so let's restore the status
quo ante for now since this was primarily a code cleanup anyway,
and if anyone needs to streamheaders in buffer mode too they
can make a patch to implement that differently. Re-implementing
the atomic writes in the element also seems way too much work.

https://bugzilla.gnome.org/show_bug.cgi?id=766990
gst/multifile/gstmultifilesink.c