summaryrefslogtreecommitdiffstats
path: root/gst/mpeg4videoparse/mpeg4videoparse.h
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2007-10-27 08:20:59 +0000
committerJulien Moutte <julien@moutte.net>2007-10-27 08:20:59 +0000
commitadbe2a1b69af3050578701a5717cfe146c06775e (patch)
tree81cd5ed550fd8926e6a8234eff8f1700d3b0e0c2 /gst/mpeg4videoparse/mpeg4videoparse.h
parent936460ea72f714dade3c7e3d3c4bc0388216a568 (diff)
downloadgst-plugins-bad-adbe2a1b69af3050578701a5717cfe146c06775e.tar.gz
gst-plugins-bad-adbe2a1b69af3050578701a5717cfe146c06775e.tar.bz2
gst-plugins-bad-adbe2a1b69af3050578701a5717cfe146c06775e.zip
gst/mpeg4videoparse/mpeg4videoparse.*: Improved version not damaging headers using a simple state machine.
Original commit message from CVS: 2007-10-27 Julien MOUTTE <julien@moutte.net> * gst/mpeg4videoparse/mpeg4videoparse.c: (gst_mpeg4vparse_align), (gst_mpeg4vparse_drain), (gst_mpeg4vparse_chain), (gst_mpeg4vparse_sink_setcaps), (gst_mpeg4vparse_sink_event), (gst_mpeg4vparse_cleanup), (gst_mpeg4vparse_change_state), (gst_mpeg4vparse_dispose), (gst_mpeg4vparse_base_init), (gst_mpeg4vparse_class_init), (gst_mpeg4vparse_init), (plugin_init): * gst/mpeg4videoparse/mpeg4videoparse.h: Improved version not damaging headers using a simple state machine.
Diffstat (limited to 'gst/mpeg4videoparse/mpeg4videoparse.h')
-rw-r--r--gst/mpeg4videoparse/mpeg4videoparse.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gst/mpeg4videoparse/mpeg4videoparse.h b/gst/mpeg4videoparse/mpeg4videoparse.h
index 0fb434c3..94438ad2 100644
--- a/gst/mpeg4videoparse/mpeg4videoparse.h
+++ b/gst/mpeg4videoparse/mpeg4videoparse.h
@@ -40,6 +40,12 @@ G_BEGIN_DECLS
typedef struct _GstMpeg4VParse GstMpeg4VParse;
typedef struct _GstMpeg4VParseClass GstMpeg4VParseClass;
+typedef enum {
+ PARSE_NEED_START,
+ PARSE_START_FOUND,
+ PARSE_VOP_FOUND
+} GstMpeg4VParseState;
+
struct _GstMpeg4VParse {
GstElement element;
@@ -47,8 +53,9 @@ struct _GstMpeg4VParse {
GstPad * srcpad;
GstAdapter * adapter;
+ guint offset;
- gboolean found_start;
+ GstMpeg4VParseState state;
};
struct _GstMpeg4VParseClass {