oggstream: only use information from skeleton if we have nothing better
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 13 Jan 2011 15:35:30 +0000 (15:35 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 19 Sep 2011 22:21:23 +0000 (23:21 +0100)
commitc956c5fd008fdc7ff6ebcdbfe79d1d0332ae0374
tree572dd053354b127171d32a6bf6b6de221e529caa
parent043ee22e25689014c0cd3f9327506d4b959995d4
oggstream: only use information from skeleton if we have nothing better

The codec setup headers are a lot more likely to have correct information,
especially as it's easy to remux a skeleton in a file where streams don't
have the same parameters (I've even seen a file with two skeletons).

Still, this is useful in the case we have a codec we can't decode, so we
can at least (theoretically) convert granpos to time, so we discard this
information if the codec setup has already provided it.

This fixes playback on (at lesat) the original archive.org encoding of
"The Night of the Living Dead" (now replaced by another encoding).

https://bugzilla.gnome.org/show_bug.cgi?id=612443
ext/ogg/gstoggdemux.c
ext/ogg/gstoggstream.c