mirror of
https://github.com/RustAudio/rodio
synced 2025-01-06 00:38:44 +00:00
fix clippy complaint that the struct is overdeclared
This commit is contained in:
parent
d08d9e71a6
commit
6bbd95ed83
1 changed files with 2 additions and 3 deletions
|
@ -2,7 +2,7 @@ use std::time::Duration;
|
||||||
use symphonia::{
|
use symphonia::{
|
||||||
core::{
|
core::{
|
||||||
audio::{AudioBufferRef, SampleBuffer, SignalSpec},
|
audio::{AudioBufferRef, SampleBuffer, SignalSpec},
|
||||||
codecs::{Decoder, DecoderOptions, CODEC_TYPE_NULL},
|
codecs::{Decoder, CODEC_TYPE_NULL},
|
||||||
errors::Error,
|
errors::Error,
|
||||||
formats::{FormatOptions, FormatReader, SeekedTo},
|
formats::{FormatOptions, FormatReader, SeekedTo},
|
||||||
io::MediaSourceStream,
|
io::MediaSourceStream,
|
||||||
|
@ -81,8 +81,7 @@ impl SymphoniaDecoder {
|
||||||
.iter()
|
.iter()
|
||||||
.find(|t| t.codec_params.codec != CODEC_TYPE_NULL).unwrap().id;
|
.find(|t| t.codec_params.codec != CODEC_TYPE_NULL).unwrap().id;
|
||||||
|
|
||||||
let decode_opts =
|
let decode_opts = Default::default();
|
||||||
DecoderOptions { verify: false, ..Default::default() };
|
|
||||||
|
|
||||||
let track = probed.format.tracks().iter().find(|track| track.id == track_id).unwrap();
|
let track = probed.format.tracks().iter().find(|track| track.id == track_id).unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue