oggmux: do not skip a pageno at start
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 21 Jan 2011 10:56:00 +0000 (10:56 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 1 Feb 2011 17:25:43 +0000 (17:25 +0000)
commitb7664eae716a7e0026c3d4d7ca10897a30f6a45e
tree7c5502e467f9a85791d912cfee7a25f2cacefa49
parent9805bdfcc8874e3673f09b0913bdc62f5ea2d614
oggmux: do not skip a pageno at start

Discontinuities are automatically signalled by oggdemux at the start
of a new stream. When oggmux is yet to output actual data pages,
do not signal these discontinuities in the ogg stream.

This patch may miss some actual discontinuities at the very start of
a stream, but avoids the spurious missing pages when encoding happens
normally.

A better fix might involve finding a way to distinguish between actual
data discontinuities and discontinuities merely marking the start of
a new stream.

Fixes an issue with ogg page numbering (would skip a number for no
reason, which then looks like a packet was lost somewhere) when
re-muxing an ogg stream, e.g. when re-tagging in rhythmbox.

https://bugzilla.gnome.org/show_bug.cgi?id=629196
ext/ogg/gstoggmux.c
ext/ogg/gstoggmux.h