From ec24b0dfabf90f2a47c6999db42e382e666852cc Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 22 Feb 2006 20:22:25 +0000 Subject: ext/dv/: Ueber spiffify some more, added debug category. Original commit message from CVS: * ext/dv/gstdvdec.c: (gst_dvdec_base_init), (gst_dvdec_init), (gst_dvdec_change_state): * ext/dv/gstdvdec.h: * ext/dv/gstdvdemux.c: (gst_dvdemux_base_init), (gst_dvdemux_init), (gst_dvdemux_src_convert), (gst_dvdemux_sink_convert), (gst_dvdemux_src_query), (gst_dvdemux_sink_query), (gst_dvdemux_handle_sink_event), (gst_dvdemux_demux_frame), (gst_dvdemux_flush), (gst_dvdemux_chain), (gst_dvdemux_change_state): * ext/dv/gstdvdemux.h: Ueber spiffify some more, added debug category. Use _scale. Use segments, respect playback rate from newsegment. Fix refcount issue. --- ext/dv/gstdvdemux.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'ext/dv/gstdvdemux.h') diff --git a/ext/dv/gstdvdemux.h b/ext/dv/gstdvdemux.h index 03035d90..eff5ee56 100644 --- a/ext/dv/gstdvdemux.h +++ b/ext/dv/gstdvdemux.h @@ -21,15 +21,12 @@ #ifndef __GST_DVDEMUX_H__ #define __GST_DVDEMUX_H__ - #include #include #include - G_BEGIN_DECLS - #define GST_TYPE_DVDEMUX \ (gst_dvdemux_get_type()) #define GST_DVDEMUX(obj) \ @@ -45,7 +42,6 @@ G_BEGIN_DECLS typedef struct _GstDVDemux GstDVDemux; typedef struct _GstDVDemuxClass GstDVDemuxClass; - struct _GstDVDemux { GstElement element; @@ -77,12 +73,9 @@ struct _GstDVDemux { guint64 audio_offset; guint64 video_offset; - gint64 start_byte; - gint64 stop_byte; - gint64 start_timestamp; - gint64 stop_timestamp; - - gboolean need_discont; + GstSegment byte_segment; + GstSegment time_segment; + gboolean need_segment; gboolean new_media; gboolean found_header; @@ -94,11 +87,8 @@ struct _GstDVDemuxClass { GstElementClass parent_class; }; - GType gst_dvdemux_get_type (void); - G_END_DECLS - #endif /* __GST_DVDEMUX_H__ */ -- cgit