diff options
Diffstat (limited to 'tests/auto/unit/mockbackend/qmockintegration.cpp')
-rw-r--r-- | tests/auto/unit/mockbackend/qmockintegration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/unit/mockbackend/qmockintegration.cpp b/tests/auto/unit/mockbackend/qmockintegration.cpp index 698ecfed9..a9135f175 100644 --- a/tests/auto/unit/mockbackend/qmockintegration.cpp +++ b/tests/auto/unit/mockbackend/qmockintegration.cpp @@ -66,12 +66,12 @@ QPlatformMediaDevices *QMockIntegration::devices() return m_devices; } -QPlatformAudioDecoder *QMockIntegration::createAudioDecoder() +QPlatformAudioDecoder *QMockIntegration::createAudioDecoder(QAudioDecoder *decoder) { if (m_flags & NoAudioDecoderInterface) m_lastAudioDecoderControl = nullptr; else - m_lastAudioDecoderControl = new QMockAudioDecoder; + m_lastAudioDecoderControl = new QMockAudioDecoder(decoder); return m_lastAudioDecoderControl; } |