diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2005-10-14 12:43:30 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-10-14 12:43:30 +0000 |
commit | 22b9a5cd4310a0c4b4ab1508c0ac8fb6a951f061 (patch) | |
tree | 7425a287d6c908eb1acda5b99793ac69343d7a32 /gst/matroska/ebml-write.h | |
parent | fb495736bc531080df1a7874d7ef3b94679d25a9 (diff) |
Port matroska muxer to 0.9 (#318847).
Original commit message from CVS:
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
* configure.ac:
* gst/matroska/Makefile.am:
* gst/matroska/ebml-ids.h:
* gst/matroska/ebml-write.c:
* gst/matroska/ebml-write.h:
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c:
* gst/matroska/matroska-mux.h:
* gst/matroska/matroska.c: (plugin_init):
Port matroska muxer to 0.9 (#318847).
Diffstat (limited to 'gst/matroska/ebml-write.h')
-rw-r--r-- | gst/matroska/ebml-write.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gst/matroska/ebml-write.h b/gst/matroska/ebml-write.h index 43d2f8b2..01a99929 100644 --- a/gst/matroska/ebml-write.h +++ b/gst/matroska/ebml-write.h @@ -1,5 +1,6 @@ /* GStreamer EBML I/O * (c) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> + * (c) 2005 Michal Benes <michal.benes@xeris.cz> * * ebml-write.c: write EBML data to file/stream * @@ -41,21 +42,35 @@ G_BEGIN_DECLS (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_EBML_WRITE, GstEbmlWriteClass)) typedef struct _GstEbmlWrite { - GstElement parent; + GstObject object; GstPad *srcpad; guint64 pos; GstBuffer *cache; + guint cache_size; guint handled; + + GstFlowReturn last_write_result; + + /*< private >*/ + gpointer _gst_reserved[GST_PADDING]; } GstEbmlWrite; typedef struct _GstEbmlWriteClass { - GstElementClass parent; + GstObjectClass parent; + + /*< private >*/ + gpointer _gst_reserved[GST_PADDING]; } GstEbmlWriteClass; GType gst_ebml_write_get_type (void); +GstEbmlWrite *gst_ebml_write_new (GstPad *srcpad); +void gst_ebml_write_reset (GstEbmlWrite *ebml); + +GstFlowReturn gst_ebml_last_write_result (GstEbmlWrite *ebml); + /* * Caching means that we do not push one buffer for * each element, but fill this one until a flush. |