Commit 7e2a0496 authored by Edward Hervey's avatar Edward Hervey 🤘

gst/qtdemux/: QtDemux can now work push-based.

Original commit message from CVS:
* gst/qtdemux/
* gst/qtdemux/qtdemux.c: (gst_qtdemux_init),
(gst_qtdemux_handle_sink_event), (gst_qtdemux_change_state),
(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.
parent 8d38cd44
......@@ -2,7 +2,7 @@
libgstqtdemux_la_CFLAGS = ${GST_CFLAGS}
libgstqtdemux_la_LIBADD =
libgstqtdemux_la_LIBADD = $(GST_BASE_LIBS)
libgstqtdemux_la_LDFLAGS = ${GST_PLUGIN_LDFLAGS}
libgstqtdemux_la_SOURCES = qtdemux.c
This diff is collapsed.
......@@ -22,6 +22,7 @@
#define __GST_QTDEMUX_H__
#include <gst/gst.h>
#include <gst/base/gstadapter.h>
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment