summaryrefslogtreecommitdiff
path: root/gst/gstbuffer.h
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2015-04-16 10:32:02 +1000
committerJan Schmidt <jan@centricular.com>2015-06-08 19:13:18 +1000
commitade4a83e633cd88d06f986662294985010837eab (patch)
tree2d03cac795d213b21b3cb23e7de0da1686c7e20f /gst/gstbuffer.h
parent499b8d841eda9177bd8b303fc5136c6d50feeac0 (diff)
Add GST_BUFFER_FLAG_SYNC_AFTER flag, and implement in filesink.
Makes it possible to get filesink to fsync() after rendering a buffer.
Diffstat (limited to 'gst/gstbuffer.h')
-rw-r--r--gst/gstbuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h
index dd7f237402..3e4fab9910 100644
--- a/gst/gstbuffer.h
+++ b/gst/gstbuffer.h
@@ -194,6 +194,9 @@ typedef struct _GstBufferPool GstBufferPool;
* @GST_BUFFER_FLAG_DELTA_UNIT: this unit cannot be decoded independently.
* @GST_BUFFER_FLAG_TAG_MEMORY: this flag is set when memory of the buffer
* is added/removed
+ * @GST_BUFFER_FLAG_SYNC_AFTER: Elements which write to disk or permanent
+ * storage should ensure the data is synced after
+ * writing the contents of this buffer. (Since: 1.6)
* @GST_BUFFER_FLAG_LAST: additional media specific flags can be added starting from
* this flag.
*
@@ -211,6 +214,7 @@ typedef enum {
GST_BUFFER_FLAG_DROPPABLE = (GST_MINI_OBJECT_FLAG_LAST << 8),
GST_BUFFER_FLAG_DELTA_UNIT = (GST_MINI_OBJECT_FLAG_LAST << 9),
GST_BUFFER_FLAG_TAG_MEMORY = (GST_MINI_OBJECT_FLAG_LAST << 10),
+ GST_BUFFER_FLAG_SYNC_AFTER = (GST_MINI_OBJECT_FLAG_LAST << 11),
GST_BUFFER_FLAG_LAST = (GST_MINI_OBJECT_FLAG_LAST << 16)
} GstBufferFlags;