From b6d8148a8db5b5e22cf373ed9b464135d9e3e151 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 28 Jan 2021 13:03:00 +0000 Subject: fixed crash when changing decoder (#1074) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9668 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/qmmpaudioengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/qmmp/qmmpaudioengine.cpp b/src/qmmp/qmmpaudioengine.cpp index 3f34e17ef..d3f4b28ec 100644 --- a/src/qmmp/qmmpaudioengine.cpp +++ b/src/qmmp/qmmpaudioengine.cpp @@ -459,7 +459,7 @@ void QmmpAudioEngine::run() m_output->wait(); delete m_output; m_output = createOutput(); - m_dithering->setFormats(m_decoders.head()->audioParameters().format(), + m_dithering->setFormats(m_decoder->audioParameters().format(), m_output->outputAudioParameters().format()); if(m_output) { -- cgit v1.2.3-13-gbd6f