From 575959e8472949f202277b2cac0225a63ab1acdd Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 5 Jun 2020 15:57:56 +0200 Subject: [PATCH] core: implement NAOptionHandler for Muxer --- nihav-core/src/muxers/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. -- 2.30.2