From f2c7fb7ee6c6cf984e2c26970796ea2b155508e1 Mon Sep 17 00:00:00 2001 From: thexai <58434170+thexai@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:32:58 +0200 Subject: [PATCH] CAEBitstreamPacker: remove unnecessary parameter in constructor --- xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.cpp | 2 +- xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.cpp | 2 +- xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.cpp index 59fdd959078fa..700abfcee57c9 100644 --- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.cpp +++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.cpp @@ -911,7 +911,7 @@ void CActiveAESink::OpenSink() m_needIecPack = NeedIECPacking(); if (m_needIecPack) { - m_packer = std::make_unique(m_requestedFormat.m_streamInfo); + m_packer = std::make_unique(); m_requestedFormat.m_sampleRate = CAEBitstreamPacker::GetOutputRate(m_requestedFormat.m_streamInfo); m_requestedFormat.m_channelLayout = CAEBitstreamPacker::GetOutputChannelMap(m_requestedFormat.m_streamInfo); } diff --git a/xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.cpp b/xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.cpp index f7a10e645f8cd..05ee3f6ccedc7 100644 --- a/xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.cpp +++ b/xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.cpp @@ -23,7 +23,7 @@ constexpr auto BURST_HEADER_SIZE = 8; constexpr auto EAC3_MAX_BURST_PAYLOAD_SIZE = 24576 - BURST_HEADER_SIZE; } // namespace -CAEBitstreamPacker::CAEBitstreamPacker(const CAEStreamInfo& info) +CAEBitstreamPacker::CAEBitstreamPacker() { Reset(); } diff --git a/xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.h b/xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.h index 6634554c9b2d2..e3f62339567d5 100644 --- a/xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.h +++ b/xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.h @@ -20,7 +20,7 @@ class CAEStreamInfo; class CAEBitstreamPacker { public: - CAEBitstreamPacker(const CAEStreamInfo& info); + CAEBitstreamPacker(); ~CAEBitstreamPacker(); void Pack(CAEStreamInfo &info, uint8_t* data, int size);