Since the default value of a GstOggPad.map.map was 0 ... we would
end up using wrong functions from mappers() if the stream wasn't
initialized yet.
Instead of that, use a default blank/empty first entry.
/* indent hates our freedoms */
const GstOggMap mappers[] = {
{
+ /* Empty mapper for uninitialized pads/streams */
+ NULL, 0, G_MAXINT32,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL
+ },
+ {
"\200theora", 7, 42,
"video/x-theora",
setup_theora_mapper,