oggstream: Add a default GstOggMap

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.
This commit is contained in:
Edward Hervey 2017-11-01 18:24:11 +01:00 committed by Edward Hervey
parent 9c2d5e863e
commit c3006b17d1

View file

@ -2240,6 +2240,23 @@ extract_tags_daala (GstOggStream * pad, ogg_packet * packet)
/* *INDENT-OFF* */
/* 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",