multifilesink: close file on write error with next-file mode is set to buffer
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Mon, 22 Feb 2016 10:01:40 +0000 (11:01 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 23 Feb 2016 09:34:31 +0000 (11:34 +0200)
commit84e441d2685cf223d348a95be0c5ba693bbf6624
tree8785dd0ef77a74aff10f9f0d7c5fa39a5b850aac
parent8657987f8f9e659a7207f5d69fdc679f5ff8f24e
multifilesink: close file on write error with next-file mode is set to buffer

If we have an error during fwrite call, file stays open and thus next
incoming buffer will trigger an assert when trying to opening a new
file.
This happens if we do not restart element, file is closed at stop, and
if application handles the returned GST_FLOW_ERROR to keep bin alive.

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