From 22b9a5cd4310a0c4b4ab1508c0ac8fb6a951f061 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Fri, 14 Oct 2005 12:43:30 +0000 Subject: Port matroska muxer to 0.9 (#318847). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Reviewed by: Tim-Philipp Müller * 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). --- gst/matroska/ebml-write.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'gst/matroska/ebml-write.h') 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 + * (c) 2005 Michal Benes * * 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. -- cgit