summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Dyomin <artem.dyomin@qt.io>2023-02-03 18:02:16 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-02-07 10:34:06 +0000
commite9e5720108e28c2cbe378af4a1eef4d313775735 (patch)
tree02b52bc42de57043085a1fa36ff1f44746f644bd
parent92bcef0192d72a6155492f25bd4b4a08e4f74fa5 (diff)
downloadqtmultimedia-e9e5720108e28c2cbe378af4a1eef4d313775735.tar.gz
Proposition to be able to turn on ffmpeg debug logs
It might be useful for developers and for asking users to provide more logs. If it's OK, we might document it. Change-Id: Ibe0937d1837d3cfd81f2ddb9998cf58168570844 Reviewed-by: Lars Knoll <lars@knoll.priv.no> (cherry picked from commit 75d9b447e4887448265313a3a1f94ce87e9cc026) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/plugins/multimedia/ffmpeg/qffmpegmediaintegration.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/multimedia/ffmpeg/qffmpegmediaintegration.cpp b/src/plugins/multimedia/ffmpeg/qffmpegmediaintegration.cpp
index b7a9bc812..953e777c4 100644
--- a/src/plugins/multimedia/ffmpeg/qffmpegmediaintegration.cpp
+++ b/src/plugins/multimedia/ffmpeg/qffmpegmediaintegration.cpp
@@ -78,6 +78,9 @@ QFFmpegMediaIntegration::QFFmpegMediaIntegration()
m_videoDevices = std::make_unique<QWindowsVideoDevices>(this);
#endif
+ if (qgetenv("QT_FFMPEG_DEBUG").toInt())
+ av_log_set_level(AV_LOG_DEBUG);
+
#ifndef QT_NO_DEBUG
qDebug() << "Available HW decoding frameworks:";
AVHWDeviceType type = AV_HWDEVICE_TYPE_NONE;