mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
f7b40c94e9
Remember parsed comments from the OpusTags header in an array member variable. Add a method to generate the nsHTMLMediaElement::MetadataTags hash table from those entries, performing the same validatation we do for Vorbis. This feature is tested by adding the existing opus test file to gMetadataTests. IsValidVorbisTagName is moved to a static method on nsOggCodecState so it can be shared among the subclasses and easily called externally. MetadataTags generation for Vorbis streams is moved to the same method name on nsVorbisState to allow sharing of the parsing and validation code as much as possible, since both formats use the same scheme. It's arguable whether contrustuction better belongs to nsOggReader or to the nsCodecState subclasses, since in theory the various multiplexed streams interact in determining the canonical tag list, but it is the per-codec streams which contain the metadata in Ogg. |
||
---|---|---|
.. | ||
Makefile.in | ||
nsOggCodecState.cpp | ||
nsOggCodecState.h | ||
nsOggDecoder.cpp | ||
nsOggDecoder.h | ||
nsOggReader.cpp | ||
nsOggReader.h |