mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 14:12:31 +00:00
EBML: Stub implement Segment.Tracks
Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
parent
f5f52ac07f
commit
f27d7c3682
3 changed files with 23 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
mod segment;
|
||||
mod segment_info;
|
||||
mod segment_tracks;
|
||||
|
||||
use super::EbmlFile;
|
||||
use crate::ebml::element_reader::{ElementHeader, ElementIdent, ElementReader, ElementReaderYield};
|
||||
|
|
|
@ -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"),
|
||||
|
|
18
src/ebml/read/segment_tracks.rs
Normal file
18
src/ebml/read/segment_tracks.rs
Normal 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")
|
||||
}
|
Loading…
Reference in a new issue