From: Kostya Shishkov Date: Thu, 21 May 2020 08:58:38 +0000 (+0200) Subject: core/demuxers: export demuxer stream manager X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=cacc0c44f6429c2acf03f9bfda5b7547614b841e;p=nihav.git core/demuxers: export demuxer stream manager This may be useful for remuxing. --- 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()