From: Kostya Shishkov Date: Fri, 5 Jun 2020 13:57:56 +0000 (+0200) Subject: core: implement NAOptionHandler for Muxer X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=575959e8472949f202277b2cac0225a63ab1acdd;p=nihav.git core: implement NAOptionHandler for Muxer --- diff --git a/nihav-core/src/muxers/mod.rs b/nihav-core/src/muxers/mod.rs index 9f40d54..49f4e2d 100644 --- a/nihav-core/src/muxers/mod.rs +++ b/nihav-core/src/muxers/mod.rs @@ -111,6 +111,18 @@ impl<'a> Muxer<'a> { } } +impl<'a> NAOptionHandler for Muxer<'a> { + fn get_supported_options(&self) -> &[NAOptionDefinition] { + self.mux.get_supported_options() + } + fn set_options(&mut self, options: &[NAOption]) { + self.mux.set_options(options); + } + fn query_option_value(&self, name: &str) -> Option { + self.mux.query_option_value(name) + } +} + /// The trait for creating muxers. pub trait MuxerCreator { /// Creates new muxer instance that will use `ByteWriter` for output.