mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
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:
parent
9c2d5e863e
commit
c3006b17d1
1 changed files with 17 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue