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

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Apr 9 02:29:27 PDT 2015


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

--- Comment #8 from Prashant Gotarne <ps.gotarne at samsung.com> ---
I think of following use case where above append property can be useful.

The current filesink element opens file in append mode and with seek operation
we can set the write cursor position. Default initial cursor position is set to
0 i.e beginning of the file.

Consider the use case where user want to implement downloader using gstreamer.
In this case following simple pipeline can be useful where data is downloaded
from the 'httpsrc' element and can be saved into a file using 'filesink'
element.

httpsrc --> filesink

In application we can set the source URL for httpsrc element and destination
file in filesink element. With the start of pipeline, file get downloaded to
local disk.

If there is some network error occured because of broken connection,
application can restart the pipeline to resume the download by setting the
filesink in append mode and by performing seek operation on both elements with
size equal to size of previously downloaded data.

With this downloader can resume the file download operation.

If we consider this usecase scenario the current behavior of the filesink for
append mode is correct.

-- 
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