summaryrefslogtreecommitdiff
path: root/gst/multifile/gstmultifilesink.h
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-02-23 19:48:10 -0800
committerDavid Schleef <ds@schleef.org>2010-03-09 13:52:30 -0800
commitacb6ebbc9a057c18d568f20d9ce1e75bb8841f05 (patch)
tree61477b1858dd07a3ed7501491a9bfd0ca4488456 /gst/multifile/gstmultifilesink.h
parente31922913fc60e6b6a2527ec08799a6877ac3900 (diff)
multifilesink: Add key-frame option to next-file
This allows segmenting of MPEG-TS files at key frames, which is exactly what is needed for Apple's HTTP streaming.
Diffstat (limited to 'gst/multifile/gstmultifilesink.h')
-rw-r--r--gst/multifile/gstmultifilesink.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/multifile/gstmultifilesink.h b/gst/multifile/gstmultifilesink.h
index b95988f0a..176891100 100644
--- a/gst/multifile/gstmultifilesink.h
+++ b/gst/multifile/gstmultifilesink.h
@@ -53,7 +53,8 @@ typedef struct _GstMultiFileSinkClass GstMultiFileSinkClass;
typedef enum {
GST_MULTI_FILE_SINK_NEXT_BUFFER,
- GST_MULTI_FILE_SINK_NEXT_DISCONT
+ GST_MULTI_FILE_SINK_NEXT_DISCONT,
+ GST_MULTI_FILE_SINK_NEXT_KEY_FRAME
} GstMultiFileSinkNext;
struct _GstMultiFileSink
@@ -65,6 +66,8 @@ struct _GstMultiFileSink
gboolean post_messages;
GstMultiFileSinkNext next_file;
FILE *file;
+
+ gint64 next_segment;
};
struct _GstMultiFileSinkClass