Skip to content

Commit

Permalink
Merge pull request xbmc#25306 from thexai/packer-cleanup
Browse files Browse the repository at this point in the history
CAEBitstreamPacker: remove unnecessary parameter in constructor
  • Loading branch information
thexai authored Jun 5, 2024
2 parents 1df4f58 + f2c7fb7 commit db4e9c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ void CActiveAESink::OpenSink()
m_needIecPack = NeedIECPacking();
if (m_needIecPack)
{
m_packer = std::make_unique<CAEBitstreamPacker>(m_requestedFormat.m_streamInfo);
m_packer = std::make_unique<CAEBitstreamPacker>();
m_requestedFormat.m_sampleRate = CAEBitstreamPacker::GetOutputRate(m_requestedFormat.m_streamInfo);
m_requestedFormat.m_channelLayout = CAEBitstreamPacker::GetOutputChannelMap(m_requestedFormat.m_streamInfo);
}
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CAEStreamInfo;
class CAEBitstreamPacker
{
public:
CAEBitstreamPacker(const CAEStreamInfo& info);
CAEBitstreamPacker();
~CAEBitstreamPacker();

void Pack(CAEStreamInfo &info, uint8_t* data, int size);
Expand Down

0 comments on commit db4e9c8

Please sign in to comment.