]> git.nihav.org Git - nihav.git/commitdiff
core/demuxers: export demuxer stream manager
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 21 May 2020 08:58:38 +0000 (10:58 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 21 May 2020 08:58:38 +0000 (10:58 +0200)
This may be useful for remuxing.

nihav-core/src/demuxers/mod.rs

index 8857cee560b23d452b5ef1fcb85d4720fcdef558..1d7347b6ac9e0f5847d0abf0237d4782123c99aa 100644 (file)
@@ -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()