filesink: Add a new full buffer mode to filesink
authorSebastian Dröge <sebastian@centricular.com>
Fri, 20 Mar 2020 17:28:37 +0000 (19:28 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 26 Mar 2020 11:31:03 +0000 (11:31 +0000)
commitdcb2be32821cb18f36ff2041f3ff36e0a462595b
treeb05a4490ef70b2f9e7dd43d4f0276495f8849638
parent93ffec7b2e5a22f7a1cfcf27ad91754e12a218ea
filesink: Add a new full buffer mode to filesink

Previously the default and full modes were the same. Now the default
mode is like before: it accumulates all buffers in a buffer list until
the threshold is reached and then writes them all out, potentially in
multiple writes.

The new full mode works by always copying memory to a single memory area
and writing everything out with a single write once the threshold is
reached.
plugins/elements/gstfilesink.c
plugins/elements/gstfilesink.h