projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c508ba
)
oggdemux: fix boundary case for seeking.
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 26 May 2009 11:14:07 +0000
(13:14 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 26 May 2009 11:14:07 +0000
(13:14 +0200)
When we have exactly 0 bytes left to search, make sure we stop instead of going
into an infinite loop.
ext/ogg/gstoggdemux.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggdemux.c
b/ext/ogg/gstoggdemux.c
index 176b69de4342f5b7fc594a0e97038b4effdfc8de..933cb9b1ebc4c9b867491ff90ba3d10a64014c7b 100644
(file)
--- a/
ext/ogg/gstoggdemux.c
+++ b/
ext/ogg/gstoggdemux.c
@@
-1620,7
+1620,7
@@
gst_ogg_demux_get_next_page (GstOggDemux * ogg, ogg_page * og, gint64 boundary,
"get next page, current offset %" G_GINT64_FORMAT ", bytes boundary %"
G_GINT64_FORMAT, ogg->offset, boundary);
- if (boundary > 0)
+ if (boundary >
=
0)
end_offset = ogg->offset + boundary;
while (TRUE) {