From f0bb7874a7e57797436f7ba5269ac52b4f63180d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 26 May 2009 13:14:07 +0200 Subject: [PATCH] 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. --- ext/ogg/gstoggdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 176b69de43..933cb9b1eb 100644 --- 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) {