oggdemux: fix boundary case for seeking.
When we have exactly 0 bytes left to search, make sure we stop instead of going into an infinite loop.
This commit is contained in:
parent
9c508ba458
commit
f0bb7874a7
@ -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 %"
|
"get next page, current offset %" G_GINT64_FORMAT ", bytes boundary %"
|
||||||
G_GINT64_FORMAT, ogg->offset, boundary);
|
G_GINT64_FORMAT, ogg->offset, boundary);
|
||||||
|
|
||||||
if (boundary > 0)
|
if (boundary >= 0)
|
||||||
end_offset = ogg->offset + boundary;
|
end_offset = ogg->offset + boundary;
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user