summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-06-02 11:57:13 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-06-02 11:57:13 +0000
commit8b094e02a991f2599325012de557a9235a934a90 (patch)
treedd6eb677db7145cc800564074c90a332e10de163 /gst
parentc717ac899e247405068988915ad6751133e2e558 (diff)
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/avi/gstavidemux.c22
1 files changed, 5 insertions, 17 deletions
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:
{