From 49f830d457fbc69dcd9e3e23b44e3d1f5f53499a Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 13 Feb 2006 22:04:42 +0000 Subject: gst/qtdemux/: QtDemux can now work push-based. Original commit message from CVS: * gst/qtdemux/Makefile.am: * gst/qtdemux/qtdemux.c: (gst_qtdemux_init), (gst_qtdemux_handle_sink_event), (gst_qtdemux_change_state), (extract_initial_length_and_fourcc), (gst_qtdemux_loop_state_header), (gst_qtdemux_loop_state_movie), (gst_qtdemux_loop_header), (next_entry_size), (gst_qtdemux_chain), (qtdemux_sink_activate), (qtdemux_sink_activate_pull), (qtdemux_sink_activate_push), (qtdemux_parse_trak): * gst/qtdemux/qtdemux.h: QtDemux can now work push-based. It still needs some love for seeking. --- gst/qtdemux/qtdemux.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gst/qtdemux/qtdemux.h') diff --git a/gst/qtdemux/qtdemux.h b/gst/qtdemux/qtdemux.h index 21584f58..42aa1571 100644 --- a/gst/qtdemux/qtdemux.h +++ b/gst/qtdemux/qtdemux.h @@ -22,6 +22,7 @@ #define __GST_QTDEMUX_H__ #include +#include G_BEGIN_DECLS @@ -61,6 +62,14 @@ struct _GstQTDemux { int state; + gboolean pullbased; + + /* push based variables */ + guint neededbytes; + guint todrop; + GstAdapter *adapter; + + /* offset of the media data (i.e.: Size of header) */ guint64 offset; GstTagList *tag_list; -- cgit v1.2.1