projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df9b8b5
)
oggdemux: Fix duration calculation for truncated files
author
David Schleef
<ds@schleef.org>
Sat, 12 Sep 2009 22:48:11 +0000
(15:48 -0700)
committer
David Schleef
<ds@schleef.org>
Sun, 13 Sep 2009 17:58:12 +0000
(10:58 -0700)
If the last page of a stream has a granulepos of -1, that is,
it doesn't complete a packet, we need to continue to search
for the last granulepos.
ext/ogg/gstoggdemux.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggdemux.c
b/ext/ogg/gstoggdemux.c
index ddb6966445a958615bb8f1480726c6d19128f1da..88f4ab75adc32f5992a6c237758b3a76c998c06f 100644
(file)
--- a/
ext/ogg/gstoggdemux.c
+++ b/
ext/ogg/gstoggdemux.c
@@
-2617,7
+2617,9
@@
gst_ogg_demux_read_end_chain (GstOggDemux * ogg, GstOggChain * chain)
last_granule = granulepos;
last_pad = pad;
}
- done = TRUE;
+ if (last_granule != -1) {
+ done = TRUE;
+ }
break;
}
}