Skip to content

Commit

Permalink
mkv: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dedobbin committed Aug 30, 2024
1 parent 7b3b954 commit be2d459
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions symphonia-format-mkv/src/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

use symphonia_core::errors::{Error, Result};
use symphonia_core::io::{BufReader, ReadBytes};
use symphonia_core::meta::{MetadataBuilder, MetadataLog, MetadataRevision, Tag, Value};
use symphonia_core::meta::{
MetadataBuilder, MetadataLog, MetadataRevision, StandardTagKey, Tag, Value,
};

use crate::ebml::{read_unsigned_vint, Element, ElementData, ElementHeader};
use crate::element_ids::ElementType;
use crate::lacing::calc_abs_block_timestamp;

use symphonia_core::meta::StandardTagKey::TrackTitle;

#[allow(dead_code)]
#[derive(Debug)]
pub(crate) struct TrackElement {
Expand Down Expand Up @@ -331,7 +331,11 @@ impl InfoElement {
match &self.title {
Some(title) => {
let mut metadata = MetadataBuilder::new();
metadata.add_tag(Tag::new(Some(TrackTitle), "TITLE", Value::String(title.to_string())));
metadata.add_tag(Tag::new(
Some(StandardTagKey::TrackTitle),
"TITLE",
Value::String(title.to_string()),
));
metadata_log.push(metadata.metadata());
}
None => return,
Expand Down

0 comments on commit be2d459

Please sign in to comment.