X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fpcm.rs;h=b4ded8746bccb11a8f63e392b18bc6f7af40a8de;hb=8ec8fe90dd159a4361442a66be6f627ad751d387;hp=32c8de0a0682891aae32ec0c02333c0e3ecbbe19;hpb=f9be4e750dccff762b9a3d894faec50ffdb59233;p=nihav.git diff --git a/nihav-commonfmt/src/codecs/pcm.rs b/nihav-commonfmt/src/codecs/pcm.rs index 32c8de0..b4ded87 100644 --- a/nihav-commonfmt/src/codecs/pcm.rs +++ b/nihav-commonfmt/src/codecs/pcm.rs @@ -60,6 +60,12 @@ impl NADecoder for PCMDecoder { } } -pub fn get_decoder() -> Box { +impl NAOptionHandler for PCMDecoder { + fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] } + fn set_options(&mut self, _options: &[NAOption]) { } + fn query_option_value(&self, _name: &str) -> Option { None } +} + +pub fn get_decoder() -> Box { Box::new(PCMDecoder::new()) }