Commit 9dc59cff authored by David Schleef's avatar David Schleef Committed by Wim Taymans
Browse files

oggdemux: Fix check for last page

parent 64dfad46
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment