From a8ef45265c05b38fc0063e15ce96f6a2bb83a1f4 Mon Sep 17 00:00:00 2001 From: Alexis Maiquez Date: Wed, 8 Feb 2023 14:30:16 +0100 Subject: [PATCH] Fix build with old ffmpeg Signed-off-by: Alexis Maiquez --- src/WallpaperEngine/Audio/CAudioStream.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WallpaperEngine/Audio/CAudioStream.cpp b/src/WallpaperEngine/Audio/CAudioStream.cpp index c2bc968..05d2852 100644 --- a/src/WallpaperEngine/Audio/CAudioStream.cpp +++ b/src/WallpaperEngine/Audio/CAudioStream.cpp @@ -246,8 +246,8 @@ void CAudioStream::initialize () this->m_swrctx = swr_alloc_set_opts ( nullptr, out_channel_layout, - this->m_audioContext->getFormat (), - this->m_audioContext->getSampleRate (), + this->m_audioContext.getFormat (), + this->m_audioContext.getSampleRate (), this->getContext ()->channel_layout, this->getContext ()->sample_fmt, this->getContext ()->sample_rate, @@ -493,7 +493,7 @@ int CAudioStream::resampleAudio ( int64_t out_channel_layout; // set output audio channels based on the input audio channels - switch (this->m_audioContext->getChannels ()) + switch (this->m_audioContext.getChannels ()) { case 1: out_channel_layout = AV_CH_LAYOUT_MONO; break; case 2: out_channel_layout = AV_CH_LAYOUT_STEREO; break;