mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
oggdemux: Fix check for last page
This commit is contained in:
parent
64dfad46f2
commit
9dc59cff15
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue