From f9c76c79e1f04372a09ee6c19d1ee1b625306dd9 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 14 Jun 2023 18:53:10 +0200 Subject: [PATCH] allstuff: register multi-threaded decoders as well --- nihav-allstuff/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nihav-allstuff/src/lib.rs b/nihav-allstuff/src/lib.rs index c016d54..060ee61 100644 --- a/nihav-allstuff/src/lib.rs +++ b/nihav-allstuff/src/lib.rs @@ -1,5 +1,6 @@ //! Umbrella crate to register decoders and demuxers from all known NihAV crates. use nihav_core::codecs::RegisteredDecoders; +use nihav_core::codecs::RegisteredMTDecoders; use nihav_core::codecs::RegisteredPacketisers; use nihav_core::codecs::RegisteredEncoders; use nihav_core::demuxers::RegisteredDemuxers; @@ -11,7 +12,7 @@ use nihav_duck::*; use nihav_flash::*; use nihav_game::*; use nihav_indeo::*; -use nihav_itu::itu_register_all_decoders; +use nihav_itu::*; use nihav_llaudio::*; use nihav_misc::*; use nihav_mpeg::*; @@ -39,6 +40,11 @@ pub fn nihav_register_all_decoders(rd: &mut RegisteredDecoders) { vivo_register_all_decoders(rd); } +/// Registers all known multi-threaded decoders. +pub fn nihav_register_all_mt_decoders(rd: &mut RegisteredMTDecoders) { + itu_register_all_mt_decoders(rd); +} + /// Registers all known packetisers. pub fn nihav_register_all_packetisers(rp: &mut RegisteredPacketisers) { llaudio_register_all_packetisers(rp); -- 2.39.5