From cacc0c44f6429c2acf03f9bfda5b7547614b841e Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 21 May 2020 10:58:38 +0200 Subject: [PATCH] core/demuxers: export demuxer stream manager This may be useful for remuxing. --- nihav-core/src/demuxers/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nihav-core/src/demuxers/mod.rs b/nihav-core/src/demuxers/mod.rs index 8857cee..1d7347b 100644 --- a/nihav-core/src/demuxers/mod.rs +++ b/nihav-core/src/demuxers/mod.rs @@ -348,6 +348,10 @@ impl<'a> Demuxer<'a> { pub fn get_num_streams(&self) -> usize { self.streams.get_num_streams() } + /// Returns a reference to the internal stream manager. + pub fn get_stream_manager(&self) -> &StreamManager { + &self.streams + } /// Returns an iterator over streams. pub fn get_streams(&self) -> StreamIter { self.streams.iter() -- 2.39.5