From 8b094e02a991f2599325012de557a9235a934a90 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 2 Jun 2002 11:57:13 +0000 Subject: Remove media specific seeking type in favour of unit. xvimage compile fix. Original commit message from CVS: Remove media specific seeking type in favour of unit. xvimage compile fix. --- gst/avi/gstavidemux.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'gst/avi/gstavidemux.c') diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 0ee9dc0c..1639d040 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -755,15 +755,10 @@ gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type, else res = FALSE; break; - case GST_FORMAT_SAMPLES: + case GST_FORMAT_UNIT: if (stream->strh.type == GST_RIFF_FCC_auds) *value = stream->strh.length * stream->strh.samplesize; - else - res = FALSE; - break; - case GST_FORMAT_FRAMES: - case GST_FORMAT_FIELDS: - if (stream->strh.type == GST_RIFF_FCC_vids) + else if (stream->strh.type == GST_RIFF_FCC_vids) *value = stream->strh.length; else res = FALSE; @@ -787,15 +782,10 @@ gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type, case GST_FORMAT_BYTES: *value = stream->current_byte; break; - case GST_FORMAT_SAMPLES: + case GST_FORMAT_UNIT: if (stream->strh.type == GST_RIFF_FCC_auds) *value = stream->current_byte * stream->strh.samplesize; - else - res = FALSE; - break; - case GST_FORMAT_FRAMES: - case GST_FORMAT_FIELDS: - if (stream->strh.type == GST_RIFF_FCC_vids) + else if (stream->strh.type == GST_RIFF_FCC_vids) *value = stream->current_frame; else res = FALSE; @@ -890,9 +880,7 @@ gst_avi_demux_handle_src_event (GstPad *pad, GstEvent *event) case GST_EVENT_SEEK: switch (GST_EVENT_SEEK_FORMAT (event)) { case GST_FORMAT_BYTES: - case GST_FORMAT_SAMPLES: - case GST_FORMAT_FRAMES: - case GST_FORMAT_FIELDS: + case GST_FORMAT_UNIT: break; case GST_FORMAT_TIME: { -- cgit