- Make _tell more accurate

Original commit message from CVS:
- Make _tell more accurate
This commit is contained in:
Wim Taymans 2003-01-20 22:32:56 +00:00
parent de6bcd890a
commit d6469f9688

View file

@ -492,8 +492,9 @@ gst_bytestream_tell (GstByteStream *bs)
format = GST_FORMAT_BYTES;
if (gst_pad_query (GST_PAD_PEER (bs->pad), GST_QUERY_POSITION, &format, &value))
return value;
if (gst_pad_query (GST_PAD_PEER (bs->pad), GST_QUERY_POSITION, &format, &value)) {
return value - bs->listavail;
}
return -1;
}