mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
UNITS fixes
Original commit message from CVS: UNITS fixes
This commit is contained in:
parent
550242d8c8
commit
a1bdcdc0c8
1 changed files with 3 additions and 3 deletions
|
@ -755,7 +755,7 @@ gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type,
|
|||
else
|
||||
res = FALSE;
|
||||
break;
|
||||
case GST_FORMAT_UNIT:
|
||||
case GST_FORMAT_UNITS:
|
||||
if (stream->strh.type == GST_RIFF_FCC_auds)
|
||||
*value = stream->strh.length * stream->strh.samplesize;
|
||||
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:
|
||||
*value = stream->current_byte;
|
||||
break;
|
||||
case GST_FORMAT_UNIT:
|
||||
case GST_FORMAT_UNITS:
|
||||
if (stream->strh.type == GST_RIFF_FCC_auds)
|
||||
*value = stream->current_byte * stream->strh.samplesize;
|
||||
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:
|
||||
switch (GST_EVENT_SEEK_FORMAT (event)) {
|
||||
case GST_FORMAT_BYTES:
|
||||
case GST_FORMAT_UNIT:
|
||||
case GST_FORMAT_UNITS:
|
||||
break;
|
||||
case GST_FORMAT_TIME:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue