make muxers handle options
[nihav.git] / nihav-commonfmt / src / muxers / wav.rs
index 163a977e5d7c2c248f042223159a275455a8713d..351231708531d3dac705b6c0cdd8627ac61484ca 100644 (file)
@@ -98,6 +98,12 @@ impl<'a> MuxCore<'a> for WAVMuxer<'a> {
     }
 }
 
+impl<'a> NAOptionHandler for WAVMuxer<'a> {
+    fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+    fn set_options(&mut self, _options: &[NAOption]) { }
+    fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
 pub struct WAVMuxerCreator {}
 
 impl MuxerCreator for WAVMuxerCreator {
@@ -105,6 +111,7 @@ impl MuxerCreator for WAVMuxerCreator {
         Box::new(WAVMuxer::new(bw))
     }
     fn get_name(&self) -> &'static str { "wav" }
+    fn get_capabilities(&self) -> MuxerCapabilities { MuxerCapabilities::SingleAudio("any") }
 }
 
 #[cfg(test)]