Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gstreamer
Commits
d6469f96
Commit
d6469f96
authored
Jan 20, 2003
by
Wim Taymans
Browse files
- Make _tell more accurate
Original commit message from CVS: - Make _tell more accurate
parent
de6bcd89
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/gst/bytestream/bytestream.c
View file @
d6469f96
...
...
@@ -239,9 +239,9 @@ gst_bytestream_peek (GstByteStream *bs, GstBuffer **buf, guint32 len)
/* make sure we have enough */
bs_print
(
"peek: there are %d bytes in the list"
,
bs
->
listavail
);
if
(
len
>
bs
->
listavail
)
{
if
(
!
gst_bytestream_fill_bytes
(
bs
,
len
)){
if
(
!
gst_bytestream_fill_bytes
(
bs
,
len
))
{
/* we must have an event coming up */
if
(
bs
->
listavail
>
0
){
if
(
bs
->
listavail
>
0
)
{
/* we have some data left, len will be shrunk to the amount of data available */
len
=
bs
->
listavail
;
}
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment