UNITS fixes

Original commit message from CVS:
UNITS fixes
This commit is contained in:
Thomas Vander Stichele 2002-06-02 15:51:08 +00:00
parent 550242d8c8
commit a1bdcdc0c8

View file

@ -755,7 +755,7 @@ gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type,
else else
res = FALSE; res = FALSE;
break; break;
case GST_FORMAT_UNIT: case GST_FORMAT_UNITS:
if (stream->strh.type == GST_RIFF_FCC_auds) if (stream->strh.type == GST_RIFF_FCC_auds)
*value = stream->strh.length * stream->strh.samplesize; *value = stream->strh.length * stream->strh.samplesize;
else if (stream->strh.type == GST_RIFF_FCC_vids) else if (stream->strh.type == GST_RIFF_FCC_vids)
@ -782,7 +782,7 @@ gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type,
case GST_FORMAT_BYTES: case GST_FORMAT_BYTES:
*value = stream->current_byte; *value = stream->current_byte;
break; break;
case GST_FORMAT_UNIT: case GST_FORMAT_UNITS:
if (stream->strh.type == GST_RIFF_FCC_auds) if (stream->strh.type == GST_RIFF_FCC_auds)
*value = stream->current_byte * stream->strh.samplesize; *value = stream->current_byte * stream->strh.samplesize;
else if (stream->strh.type == GST_RIFF_FCC_vids) else if (stream->strh.type == GST_RIFF_FCC_vids)
@ -880,7 +880,7 @@ gst_avi_demux_handle_src_event (GstPad *pad, GstEvent *event)
case GST_EVENT_SEEK: case GST_EVENT_SEEK:
switch (GST_EVENT_SEEK_FORMAT (event)) { switch (GST_EVENT_SEEK_FORMAT (event)) {
case GST_FORMAT_BYTES: case GST_FORMAT_BYTES:
case GST_FORMAT_UNIT: case GST_FORMAT_UNITS:
break; break;
case GST_FORMAT_TIME: case GST_FORMAT_TIME:
{ {