aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-commonfmt/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-05-31 18:15:50 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-05-31 18:15:50 +0200
commit787b8d03074419d7f8e6b52daba02a3807444bc2 (patch)
tree60427270debe3b4442dc1a3d1e1f7c68a178a314 /nihav-commonfmt/src
parentdc80f48ea3097c891b159667ea239d3c20c78bc8 (diff)
downloadnihav-787b8d03074419d7f8e6b52daba02a3807444bc2.tar.gz
introduce option handling for demuxers
Diffstat (limited to 'nihav-commonfmt/src')
-rw-r--r--nihav-commonfmt/src/demuxers/avi.rs6
-rw-r--r--nihav-commonfmt/src/demuxers/mov.rs6
-rw-r--r--nihav-commonfmt/src/demuxers/wav.rs6
3 files changed, 18 insertions, 0 deletions
diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs
index 4ea4067..cf1b5bf 100644
--- a/nihav-commonfmt/src/demuxers/avi.rs
+++ b/nihav-commonfmt/src/demuxers/avi.rs
@@ -154,6 +154,12 @@ impl<'a> DemuxCore<'a> for AVIDemuxer<'a> {
}
}
+impl<'a> NAOptionHandler for AVIDemuxer<'a> {
+ fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+ fn set_options(&mut self, _options: &[NAOption]) { }
+ fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
impl<'a> AVIDemuxer<'a> {
fn new(io: &'a mut ByteReader<'a>) -> Self {
AVIDemuxer {
diff --git a/nihav-commonfmt/src/demuxers/mov.rs b/nihav-commonfmt/src/demuxers/mov.rs
index b7aecd5..29c512d 100644
--- a/nihav-commonfmt/src/demuxers/mov.rs
+++ b/nihav-commonfmt/src/demuxers/mov.rs
@@ -829,6 +829,12 @@ impl<'a> DemuxCore<'a> for MOVDemuxer<'a> {
}
}
+impl<'a> NAOptionHandler for MOVDemuxer<'a> {
+ fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+ fn set_options(&mut self, _options: &[NAOption]) { }
+ fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
impl<'a> MOVDemuxer<'a> {
fn new(io: &'a mut ByteReader<'a>) -> Self {
MOVDemuxer {
diff --git a/nihav-commonfmt/src/demuxers/wav.rs b/nihav-commonfmt/src/demuxers/wav.rs
index 8c41c2d..bf30686 100644
--- a/nihav-commonfmt/src/demuxers/wav.rs
+++ b/nihav-commonfmt/src/demuxers/wav.rs
@@ -95,6 +95,12 @@ impl<'a> DemuxCore<'a> for WAVDemuxer<'a> {
}
}
+impl<'a> NAOptionHandler for WAVDemuxer<'a> {
+ fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+ fn set_options(&mut self, _options: &[NAOption]) { }
+ fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
impl<'a> WAVDemuxer<'a> {
fn new(io: &'a mut ByteReader<'a>) -> Self {
WAVDemuxer {