summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gsttools/qgstreamerplayersession.cpp5
-rw-r--r--src/multimedia/audio/qsoundeffect_pulse_p.cpp2
-rw-r--r--src/multimedia/audio/qsoundeffect_qaudio_p.cpp2
3 files changed, 7 insertions, 2 deletions
diff --git a/src/gsttools/qgstreamerplayersession.cpp b/src/gsttools/qgstreamerplayersession.cpp
index f21c94c5c..9858f61c9 100644
--- a/src/gsttools/qgstreamerplayersession.cpp
+++ b/src/gsttools/qgstreamerplayersession.cpp
@@ -402,9 +402,14 @@ void QGstreamerPlayerSession::setPipeline(GstElement *pipeline)
if (m_renderer) {
auto it = gst_bin_iterate_sinks(GST_BIN(pipeline));
+#if GST_CHECK_VERSION(1,0,0)
GValue data = { 0, 0 };
while (gst_iterator_next (it, &data) == GST_ITERATOR_OK) {
auto child = static_cast<GstElement*>(g_value_get_object(&data));
+#else
+ GstElement *child = nullptr;
+ while (gst_iterator_next(it, reinterpret_cast<gpointer *>(&child)) == GST_ITERATOR_OK) {
+#endif
if (QLatin1String(GST_OBJECT_NAME(child)) == QLatin1String("qtvideosink")) {
m_renderer->setVideoSink(child);
break;
diff --git a/src/multimedia/audio/qsoundeffect_pulse_p.cpp b/src/multimedia/audio/qsoundeffect_pulse_p.cpp
index 075e639a8..0855c1f67 100644
--- a/src/multimedia/audio/qsoundeffect_pulse_p.cpp
+++ b/src/multimedia/audio/qsoundeffect_pulse_p.cpp
@@ -750,7 +750,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 ac4dd9cf9..b553671fa 100644
--- a/src/multimedia/audio/qsoundeffect_qaudio_p.cpp
+++ b/src/multimedia/audio/qsoundeffect_qaudio_p.cpp
@@ -354,7 +354,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;