[Bug 747435] test: filesink: add test to verify append mode

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 8 04:51:35 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=747435

--- Comment #7 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Right, so: the file will be opened with mode "ab" which will position the write
cursor at the end of the file.

However, we then send a SEGMENT event to the sink.

If the SEGMENT event is in TIME format (as in the original feature request for
which append mode was added), filesink will not do a seek and just continue to
add data at the end of the file.

However, if we send a SEGMENT event in BYTE format, filesink will seek back to
the beginning of the file.

I guess what we need to decide is if a BYTE seek to 0 should end up at the
beginning of the file, or where the write cursor was when the file was opened
in append mode (i.e. the end of the file before it was appended to). I can't
really see a valid use case for the former.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list