oggmux: prefer headers from caps to determine stream type
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 15 Apr 2011 12:36:39 +0000 (13:36 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Apr 2011 10:55:27 +0000 (11:55 +0100)
commit55e767b6328e6cc0db7bf6ac23cdf4e0eab537e6
tree56d0106b84f61a64b30739ac1c3f31f1f2b799de
parent1d05e81435e01d3054e61d0793fee2dafb92946d
oggmux: prefer headers from caps to determine stream type

Ogg mandates the first header packet must determine a stream's type.
However, some streams (such as VP8) do not include such a header
when muxed in other containers, and thus do not include this header
as a buffer, but only in caps. We thus use headers from caps when
available to determine a new stream's type.

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