introduce option handling for demuxers
[nihav.git] / nihav-rad / src / demuxers / bink.rs
index 5caa40cf0cb56c4a8f736d5c04003519a4a60429..35bdcbf6126234a4030f432412403901e7c9f4e6 100644 (file)
@@ -114,7 +114,7 @@ impl<'a> DemuxCore<'a> for BinkDemuxer<'a> {
         seek_idx.seek_info[0].filled = true;
 
         self.cur_frame = 0;
-        
+
         Ok(())
     }
     fn get_frame(&mut self, strmgr: &mut StreamManager) -> DemuxerResult<NAPacket> {
@@ -165,6 +165,12 @@ impl<'a> DemuxCore<'a> for BinkDemuxer<'a> {
     }
 }
 
+impl<'a> NAOptionHandler for BinkDemuxer<'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> BinkDemuxer<'a> {
     fn new(io: &'a mut ByteReader<'a>) -> Self {
         Self {