oggdemux: Fix duration calculation for truncated files
authorDavid Schleef <ds@schleef.org>
Sat, 12 Sep 2009 22:48:11 +0000 (15:48 -0700)
committerDavid Schleef <ds@schleef.org>
Sun, 13 Sep 2009 17:58:12 +0000 (10:58 -0700)
commitf126617dbdf08f6cd91b4b8627f581ea25664472
tree00af587037579fe62f763f36a4482fdaa2cf003f
parentdf9b8b57b37f0ad69d136d8d0cb7af7b2069e448
oggdemux: Fix duration calculation for truncated files

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