From fec515810c931d62194a3db876491fdf7d4cc64f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 20 Jan 2023 17:43:49 +0100 Subject: redesigned player conf --- common/src/impl.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/src') diff --git a/common/src/impl.rs b/common/src/impl.rs index c17f1ec..7be6911 100644 --- a/common/src/impl.rs +++ b/common/src/impl.rs @@ -14,17 +14,17 @@ impl std::fmt::Display for SourceTrack { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let kspec = match &self.kind { SourceTrackKind::Video { width, height, fps } => { - format!("Video: {width}x{height}, {fps}fps, ") + format!("Video: {width}x{height} {fps}fps ") } SourceTrackKind::Audio { channels, sample_rate, bit_depth, - } => format!("Audio: {channels}ch, {sample_rate}Hz, {bit_depth}bits, "), + } => format!("Audio: {channels}ch {sample_rate}Hz {bit_depth}bits "), SourceTrackKind::Subtitles => format!("Subtitles: "), }; f.write_fmt(format_args!( - "{}, {:?}, {} ({})", + "{} {:?} {} ({})", kspec, self.name, self.language, self.codec )) } -- cgit v1.2.3-70-g09d2