summaryrefslogtreecommitdiffstats
path: root/gst/matroska/matroska-mux.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
commit5d25c00e4b613b9cdf2c04fa3a68dffa03834a68 (patch)
tree74a5b1eaf3a324b520e64e87404fd0b3018a7829 /gst/matroska/matroska-mux.h
parent1e83b097f7b732ae49e294a5a398bdc3e88854a8 (diff)
gst-indent
Original commit message from CVS: gst-indent
Diffstat (limited to 'gst/matroska/matroska-mux.h')
-rw-r--r--gst/matroska/matroska-mux.h51
1 files changed, 23 insertions, 28 deletions
diff --git a/gst/matroska/matroska-mux.h b/gst/matroska/matroska-mux.h
index 119237c9..ab018688 100644
--- a/gst/matroska/matroska-mux.h
+++ b/gst/matroska/matroska-mux.h
@@ -28,7 +28,6 @@
#include "matroska-ids.h"
G_BEGIN_DECLS
-
#define GST_TYPE_MATROSKA_MUX \
(gst_matroska_mux_get_type ())
#define GST_MATROSKA_MUX(obj) \
@@ -39,65 +38,61 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MATROSKA_MUX))
#define GST_IS_MATROSKA_MUX_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MATROSKA_MUX))
-
#define GST_MATROSKA_MUX_MAX_STREAMS 64
-
-typedef enum {
+ typedef enum
+{
GST_MATROSKA_MUX_STATE_START,
GST_MATROSKA_MUX_STATE_HEADER,
GST_MATROSKA_MUX_STATE_DATA,
} GstMatroskaMuxState;
-typedef struct _GstMatroskaMux {
- GstEbmlWrite parent;
+typedef struct _GstMatroskaMux
+{
+ GstEbmlWrite parent;
/* pads */
- GstPad *srcpad;
- struct {
+ GstPad *srcpad;
+ struct
+ {
GstMatroskaTrackContext *track;
- GstBuffer *buffer;
- gboolean eos;
+ GstBuffer *buffer;
+ gboolean eos;
} sink[GST_MATROSKA_MUX_MAX_STREAMS];
- guint num_streams,
- num_v_streams, num_a_streams, num_t_streams;
+ guint num_streams, num_v_streams, num_a_streams, num_t_streams;
/* metadata - includes writing_app and creation_time */
- GstCaps *metadata;
+ GstCaps *metadata;
/* state */
GstMatroskaMuxState state;
/* a cue (index) table */
GstMatroskaIndex *index;
- guint num_indexes;
+ guint num_indexes;
/* timescale in the file */
- guint64 time_scale;
+ guint64 time_scale;
/* length, position (time, ns) */
- guint64 duration;
+ guint64 duration;
/* byte-positions of master-elements (for replacing contents) */
- guint64 segment_pos,
- seekhead_pos,
- cues_pos,
+ guint64 segment_pos, seekhead_pos, cues_pos,
#if 0
- tags_pos,
+ tags_pos,
#endif
- info_pos,
- tracks_pos,
- duration_pos;
- guint64 segment_master;
+ info_pos, tracks_pos, duration_pos;
+ guint64 segment_master;
} GstMatroskaMux;
-typedef struct _GstMatroskaMuxClass {
+typedef struct _GstMatroskaMuxClass
+{
GstEbmlWriteClass parent;
} GstMatroskaMuxClass;
-GType gst_matroska_mux_get_type (void);
+GType gst_matroska_mux_get_type (void);
-gboolean gst_matroska_mux_plugin_init (GstPlugin *plugin);
+gboolean gst_matroska_mux_plugin_init (GstPlugin * plugin);
G_END_DECLS
-
#endif /* __GST_MATROSKA_MUX_H__ */