mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
f468eb7db0
Sometimes filesink cleanup during stop may fail due to fclose error. In this case object left partial cleanup with no file opened but still holding old file descriptor. It's not possible to change location property in a such state, so next start will cause old file overwrite if 'append' does not set. According to man page and POSIX standard about fclose behavior(extract): ------------------------------------------------------------------------ The fclose() function shall cause the stream pointed to by stream to be flushed and the associated file to be closed. ... Whether or not the call succeeds, the stream shall be disassociated from the file and any buffer set by the setbuf() or setvbuf() function shall be disassociated from the stream. ... The fclose() function shall perform the equivalent of a close() on the file descriptor that is associated with the stream pointed to by stream. After the call to fclose(), any use of stream results in undefined behavior. ------------------------------------------------------------------------ So file is in 'closed' state no matter if fclose succeed or not. And cleanup could be continued. https://bugzilla.gnome.org/show_bug.cgi?id=757596 |
||
---|---|---|
.. | ||
.gitignore | ||
gstcapsfilter.c | ||
gstcapsfilter.h | ||
gstconcat.c | ||
gstconcat.h | ||
gstdownloadbuffer.c | ||
gstdownloadbuffer.h | ||
gstelements.c | ||
gstelements_private.c | ||
gstelements_private.h | ||
gstfakesink.c | ||
gstfakesink.h | ||
gstfakesrc.c | ||
gstfakesrc.h | ||
gstfdsink.c | ||
gstfdsink.h | ||
gstfdsrc.c | ||
gstfdsrc.h | ||
gstfilesink.c | ||
gstfilesink.h | ||
gstfilesrc.c | ||
gstfilesrc.h | ||
gstfunnel.c | ||
gstfunnel.h | ||
gstidentity.c | ||
gstidentity.h | ||
gstinputselector.c | ||
gstinputselector.h | ||
gstmultiqueue.c | ||
gstmultiqueue.h | ||
gstoutputselector.c | ||
gstoutputselector.h | ||
gstqueue.c | ||
gstqueue.h | ||
gstqueue2.c | ||
gstqueue2.h | ||
gstsparsefile.c | ||
gstsparsefile.h | ||
gststreamiddemux.c | ||
gststreamiddemux.h | ||
gsttee.c | ||
gsttee.h | ||
gsttypefindelement.c | ||
gsttypefindelement.h | ||
gstvalve.c | ||
gstvalve.h | ||
Makefile.am |