GNOME Bugzilla – Bug 336945
[filesink] throws error when writing 0 bytes
Last modified: 2006-04-04 15:46:05 UTC
GstFileSink uses fwrite to perform actual writes. The return code is checked in a way that (always) "triggers" a GST_ELEMENT_ERROR if a buffer of 0 bytes was pushed to it. Perhaps this is intentional, perhaps not ... ?
Created attachment 62616 [details] [review] Possible patch. Simple patch, only trigger error if there was at least really something to be written.
2006-04-04 Tim-Philipp Müller <tim at centricular dot net> Patch by: Mark Nauwelaerts <manauw at skynet dot be> * plugins/elements/gstfilesink.c: (gst_file_sink_render): Don't error out on empty buffers (#336945).