From 0335a70617d13dcd34c936df9bebd5238ae5a45a Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 9 Jun 2026 18:52:58 +0200 Subject: [PATCH] nihav_core/muxer: make Muxer fields and constructor public At last this will allow creating it from custom MuxCore manually. --- nihav-core/src/muxers/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, -- 2.39.5