mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 15:12:58 +00:00
matroska: Reorder switch/case for parsing
Just makes it clearer Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
5d69f2bc36
commit
2a6c1bbb01
2 changed files with 12 additions and 12 deletions
|
@ -1461,12 +1461,6 @@ gst_matroska_demux_parse_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml,
|
|||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
GST_WARNING ("Unknown TrackEntry subelement 0x%x - ignoring", id);
|
||||
/* pass-through */
|
||||
|
||||
/* we ignore these because they're nothing useful (i.e. crap)
|
||||
* or simply not implemented yet. */
|
||||
case GST_MATROSKA_ID_TRACKMINCACHE:
|
||||
case GST_MATROSKA_ID_TRACKMAXCACHE:
|
||||
case GST_MATROSKA_ID_MAXBLOCKADDITIONID:
|
||||
|
@ -1478,6 +1472,12 @@ gst_matroska_demux_parse_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml,
|
|||
case GST_MATROSKA_ID_CODECINFOURL:
|
||||
case GST_MATROSKA_ID_CODECDOWNLOADURL:
|
||||
case GST_MATROSKA_ID_CODECDECODEALL:
|
||||
/* we ignore these because they're nothing useful (i.e. crap)
|
||||
* or simply not implemented yet. */
|
||||
ret = gst_ebml_read_skip (ebml);
|
||||
break;
|
||||
default:
|
||||
GST_WARNING ("Unknown TrackEntry subelement 0x%x - ignoring", id);
|
||||
ret = gst_ebml_read_skip (ebml);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -943,12 +943,6 @@ gst_matroska_parse_add_stream (GstMatroskaParse * parse, GstEbmlRead * ebml)
|
|||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
GST_WARNING ("Unknown TrackEntry subelement 0x%x - ignoring", id);
|
||||
/* pass-through */
|
||||
|
||||
/* we ignore these because they're nothing useful (i.e. crap)
|
||||
* or simply not implemented yet. */
|
||||
case GST_MATROSKA_ID_TRACKMINCACHE:
|
||||
case GST_MATROSKA_ID_TRACKMAXCACHE:
|
||||
case GST_MATROSKA_ID_MAXBLOCKADDITIONID:
|
||||
|
@ -960,6 +954,12 @@ gst_matroska_parse_add_stream (GstMatroskaParse * parse, GstEbmlRead * ebml)
|
|||
case GST_MATROSKA_ID_CODECINFOURL:
|
||||
case GST_MATROSKA_ID_CODECDOWNLOADURL:
|
||||
case GST_MATROSKA_ID_CODECDECODEALL:
|
||||
/* we ignore these because they're nothing useful (i.e. crap)
|
||||
* or simply not implemented yet. */
|
||||
ret = gst_ebml_read_skip (ebml);
|
||||
break;
|
||||
default:
|
||||
GST_WARNING ("Unknown TrackEntry subelement 0x%x - ignoring", id);
|
||||
ret = gst_ebml_read_skip (ebml);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue