[gst-cvs] gst-plugins-base: oggdemux: Fix check for last page

Wim Taymans wtay at kemper.freedesktop.org
Tue Oct 12 07:07:05 PDT 2010


Module: gst-plugins-base
Branch: master
Commit: 9dc59cff151bf578012a735d0791ab4767debda6
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=9dc59cff151bf578012a735d0791ab4767debda6

Author: David Schleef <ds at schleef.org>
Date:   Sun Oct 10 15:22:52 2010 -0700

oggdemux: Fix check for last page

---

 ext/ogg/gstoggdemux.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index 836ff8c..c4e64c8 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -2827,10 +2827,8 @@ gst_ogg_demux_read_end_chain (GstOggDemux * ogg, GstOggChain * chain)
         if (pad->map.serialno == ogg_page_serialno (&og)) {
           gint64 granulepos = ogg_page_granulepos (&og);
 
-          if (last_granule == -1 || last_granule < granulepos) {
-            last_granule = granulepos;
-            last_pad = pad;
-          }
+          last_granule = granulepos;
+          last_pad = pad;
           if (last_granule != -1) {
             done = TRUE;
           }





More information about the Gstreamer-commits mailing list