EBML: Stub implement Segment.Tracks

Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
Serial 2023-11-28 15:12:41 -05:00
parent f5f52ac07f
commit f27d7c3682
No known key found for this signature in database
GPG key ID: DA95198DC17C4568
3 changed files with 23 additions and 2 deletions

View file

@ -1,5 +1,6 @@
mod segment;
mod segment_info;
mod segment_tracks;
use super::EbmlFile;
use crate::ebml::element_reader::{ElementHeader, ElementIdent, ElementReader, ElementReaderYield};

View file

@ -1,4 +1,4 @@
use super::segment_info;
use super::{segment_info, segment_tracks};
use crate::ebml::element_reader::{ElementIdent, ElementReader, ElementReaderYield};
use crate::ebml::properties::EbmlProperties;
use crate::ebml::tag::EbmlTag;
@ -26,7 +26,9 @@ where
segment_info::read_from(children_reader.inner(), parse_options, properties)?
},
ElementIdent::Cluster => todo!("Support segment.Cluster"),
ElementIdent::Tracks => todo!("Support segment.Tracks"),
ElementIdent::Tracks => {
segment_tracks::read_from(children_reader.inner(), parse_options, properties)?
},
ElementIdent::Tags => todo!("Support segment.Tags"),
ElementIdent::Attachments => todo!("Support segment.Attachments"),
ElementIdent::Chapters => todo!("Support segment.Chapters"),

View file

@ -0,0 +1,18 @@
use crate::ebml::element_reader::{ElementIdent, ElementReader, ElementReaderYield};
use crate::ebml::properties::EbmlProperties;
use crate::error::Result;
use crate::macros::decode_err;
use crate::probe::ParseOptions;
use std::io::{Read, Seek};
pub(super) fn read_from<R>(
_element_reader: &mut ElementReader<R>,
_parse_options: ParseOptions,
_properties: &mut EbmlProperties,
) -> Result<()>
where
R: Read + Seek,
{
unimplemented!("\\Ebml\\Segment\\Tracks")
}