From: Kostya Shishkov Date: Tue, 9 Jun 2026 16:52:58 +0000 (+0200) Subject: nihav_core/muxer: make Muxer fields and constructor public X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=0335a70617d13dcd34c936df9bebd5238ae5a45a;p=nihav.git nihav_core/muxer: make Muxer fields and constructor public At last this will allow creating it from custom MuxCore manually. --- diff --git a/nihav-core/src/muxers/mod.rs b/nihav-core/src/muxers/mod.rs index 42068b4..bf6e704 100644 --- a/nihav-core/src/muxers/mod.rs +++ b/nihav-core/src/muxers/mod.rs @@ -115,13 +115,13 @@ pub trait MuxCore<'a>: NAOptionHandler { /// Muxer structure with auxiliary data. pub struct Muxer<'a> { - mux: Box + 'a>, - streams: StreamManager, + pub mux: Box + 'a>, + pub streams: StreamManager, } impl<'a> Muxer<'a> { /// Constructs a new `Muxer` instance. - fn new(mux: Box + 'a>, strmgr: StreamManager) -> Self { + pub fn new(mux: Box + 'a>, strmgr: StreamManager) -> Self { Muxer { mux, streams: strmgr,