Skip to content

Commit d72ef49

Browse files
committed
Decoding: Fix typo and improve naming
1 parent d23fe40 commit d72ef49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/decoding.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ impl MediaDecoder {
6666
pub fn try_new<R: std::io::Read + Send + Sync + 'static>(
6767
input: R,
6868
) -> Result<Self, Box<dyn std::error::Error + Send + Sync>> {
69-
// Symfonia lib needs a Box<dyn MediaSource> - use our own MediaInput
69+
// Symphonia lib needs a Box<dyn MediaSource> - use our own MediaInput
7070
let input = Box::new(MediaInput::new(input));
7171

7272
// Create the media source stream using the boxed media source from above.
73-
let mss = symphonia::core::io::MediaSourceStream::new(input, Default::default());
73+
let stream = symphonia::core::io::MediaSourceStream::new(input, Default::default());
7474

7575
// Create a hint to help the format registry guess what format reader is appropriate. In this
7676
// function we'll leave it empty.
@@ -86,7 +86,7 @@ impl MediaDecoder {
8686

8787
// Probe the media source stream for a format.
8888
let probed =
89-
symphonia::default::get_probe().format(&hint, mss, &format_opts, &metadata_opts)?;
89+
symphonia::default::get_probe().format(&hint, stream, &format_opts, &metadata_opts)?;
9090

9191
// Get the format reader yielded by the probe operation.
9292
let format = probed.format;

0 commit comments

Comments
 (0)