diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-05-31 15:18:42 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-05-31 15:18:57 +0200 |
commit | dc80f48ea3097c891b159667ea239d3c20c78bc8 (patch) | |
tree | b459af26e88bd927ca591a8a7f56cd02af4544c7 /nihav-commonfmt/src | |
parent | a0ddfb3d1ef6509bfd5cc957187f98d01c806bd8 (diff) | |
download | nihav-dc80f48ea3097c891b159667ea239d3c20c78bc8.tar.gz |
make muxers handle options
Diffstat (limited to 'nihav-commonfmt/src')
-rw-r--r-- | nihav-commonfmt/src/muxers/avi.rs | 6 | ||||
-rw-r--r-- | nihav-commonfmt/src/muxers/wav.rs | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/nihav-commonfmt/src/muxers/avi.rs b/nihav-commonfmt/src/muxers/avi.rs index ac13cb2..9b83296 100644 --- a/nihav-commonfmt/src/muxers/avi.rs +++ b/nihav-commonfmt/src/muxers/avi.rs @@ -288,6 +288,12 @@ impl<'a> MuxCore<'a> for AVIMuxer<'a> { } } +impl<'a> NAOptionHandler for AVIMuxer<'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 AVIMuxerCreator {} impl MuxerCreator for AVIMuxerCreator { diff --git a/nihav-commonfmt/src/muxers/wav.rs b/nihav-commonfmt/src/muxers/wav.rs index a11bb2a..3512317 100644 --- a/nihav-commonfmt/src/muxers/wav.rs +++ b/nihav-commonfmt/src/muxers/wav.rs @@ -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 { |