summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio
diff options
context:
space:
mode:
authorRoland Rossgotterer <roland.rossgotterer@gmail.com>2019-03-23 13:25:54 +0100
committerRoland Rossgotterer <roland.rossgotterer@gmail.com>2019-03-25 09:13:33 +0000
commit226f802fb04de6b135a0214674ce77643ba479c4 (patch)
treea35c9682e42b87c5d872272b6c6d6ddf38022c55 /src/multimedia/audio
parentd665520e8bd23121160d82cada34ff625e0d0cfe (diff)
Add source url to 'decoding error' warning
Previously, QSoundEffect logged a warning if the source could not be decoded, but without mentioning the source it tried to decode. When using multiple QSoundEffects in one application, adding the source to the warning will help to find the one causing the decode error. Change-Id: I4c6bbdfe4a62f650b64ab951bcc637febedae98e Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/multimedia/audio')
-rw-r--r--src/multimedia/audio/qsoundeffect_pulse_p.cpp2
-rw-r--r--src/multimedia/audio/qsoundeffect_qaudio_p.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/audio/qsoundeffect_pulse_p.cpp b/src/multimedia/audio/qsoundeffect_pulse_p.cpp
index bbaf405b6..4a2e30185 100644
--- a/src/multimedia/audio/qsoundeffect_pulse_p.cpp
+++ b/src/multimedia/audio/qsoundeffect_pulse_p.cpp
@@ -744,7 +744,7 @@ void QSoundEffectPrivate::sampleReady()
void QSoundEffectPrivate::decoderError()
{
- qWarning("QSoundEffect(pulseaudio): Error decoding source");
+ qWarning("QSoundEffect(pulseaudio): Error decoding source %ls", qUtf16Printable(m_source.toString()));
disconnect(m_sample, &QSample::error, this, &QSoundEffectPrivate::decoderError);
bool playingDirty = false;
if (m_playing) {
diff --git a/src/multimedia/audio/qsoundeffect_qaudio_p.cpp b/src/multimedia/audio/qsoundeffect_qaudio_p.cpp
index d7a19eeec..13df416f3 100644
--- a/src/multimedia/audio/qsoundeffect_qaudio_p.cpp
+++ b/src/multimedia/audio/qsoundeffect_qaudio_p.cpp
@@ -344,7 +344,7 @@ void PrivateSoundSource::sampleReady()
void PrivateSoundSource::decoderError()
{
- qWarning("QSoundEffect(qaudio): Error decoding source");
+ qWarning("QSoundEffect(qaudio): Error decoding source %ls", qUtf16Printable(m_url.toString()));
disconnect(m_sample, &QSample::ready, this, &PrivateSoundSource::sampleReady);
disconnect(m_sample, &QSample::error, this, &PrivateSoundSource::decoderError);
m_playing = false;