oggmux: pick delta pad earlier during header parsing and based on video/non-video
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 10 Aug 2012 09:45:09 +0000 (10:45 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 10 Aug 2012 09:45:09 +0000 (10:45 +0100)
commit0dd2766d834e47f1a410630da106e08f217e7b2e
treee4623bee12821418f1dd9a62c6bd7be557678b92
parentd1299d13573da01923aab51bbecb0af16b0f5ef2
oggmux: pick delta pad earlier during header parsing and based on video/non-video

Pick delta pad earlier during header parsing, and pick it based
on whether it's a video stream or not rather than some rather
byzantine signalling from theoraenc etc. which would set the delta
flag on header packets which oggmux would then pick up and determine
that this is a "delta-able" stream.

Since the new videodecoder-based theoraenc didn't do that any more,
we would only see the first delta flag on the second video packet,
which is after we've already muxed a few audio packets flagged as
key units, which trips up the unit test.

Fixes pipelines/oggmux unit test.

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