From ad2f2ea24b2fdea13ba5a940a38e5f978ed40770 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 11 Nov 2005 16:48:58 +0000 Subject: gst/avi/gstavidemux.*: Yeah, implement proper seeking. Exact seeking and segment seeking. Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_reset), (gst_avi_demux_src_convert), (gst_avi_demux_handle_src_event), (gst_avi_demux_stream_header), (gst_avi_demux_handle_seek), (gst_avi_demux_process_next_entry), (gst_avi_demux_stream_data), (gst_avi_demux_loop): * gst/avi/gstavidemux.h: Yeah, implement proper seeking. Exact seeking and segment seeking. Still need to do some checks for segment_stop. --- gst/avi/gstavidemux.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gst/avi/gstavidemux.h') diff --git a/gst/avi/gstavidemux.h b/gst/avi/gstavidemux.h index e99ba637..617c7234 100644 --- a/gst/avi/gstavidemux.h +++ b/gst/avi/gstavidemux.h @@ -116,10 +116,11 @@ typedef struct _GstAviDemux { gst_riff_avih *avih; /* seeking */ - guint64 seek_offset; - guint64 last_seek; - gint seek_entry; - gboolean seek_flush; + gdouble segment_rate; + GstSeekFlags segment_flags; + /* in GST_FORMAT_TIME */ + gint64 segment_start; + gint64 segment_stop; GstEvent *seek_event; } GstAviDemux; -- cgit