summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Srebrny <piotr.srebrny@qt.io>2022-02-09 10:32:05 +0100
committerPiotr Srebrny <piotr.srebrny@qt.io>2022-02-16 13:52:48 +0100
commit14758a8ea3a2e93e5809e36cf0350e1838b37734 (patch)
tree5a91f4769ac570c02591c7532fd1b33c2bd5eef0
parentdd9404fe2c72720cb1d12bc4b4e7304c99cdbaa5 (diff)
Avoid sending warning on per-frame basis, use debug message instead
Fixes: QTBUG-100363 Change-Id: Ic0c39dce6c0d016cf6e59cba9e50f4d641a16543 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 1f9c3926687bac52ee794a99dcb19d66e11af24c) Reviewed-by: André de la Rocha <andre.rocha@qt.io>
-rw-r--r--src/multimedia/platform/windows/evr/evrd3dpresentengine.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/multimedia/platform/windows/evr/evrd3dpresentengine.cpp b/src/multimedia/platform/windows/evr/evrd3dpresentengine.cpp
index c3c6bac1a..9cf4846a7 100644
--- a/src/multimedia/platform/windows/evr/evrd3dpresentengine.cpp
+++ b/src/multimedia/platform/windows/evr/evrd3dpresentengine.cpp
@@ -184,23 +184,23 @@ public:
if (m_d3dglHandle) {
if (m_glHandle) {
if (!m_wgl.wglDXUnlockObjectsNV(m_d3dglHandle, 1, &m_glHandle))
- qWarning() << "Failed to unlock OpenGL texture";
+ qCDebug(qLcEvrD3DPresentEngine) << "Failed to unlock OpenGL texture";
if (!m_wgl.wglDXUnregisterObjectNV(m_d3dglHandle, m_glHandle))
- qWarning() << "Failed to unregister OpenGL texture";
+ qCDebug(qLcEvrD3DPresentEngine) << "Failed to unregister OpenGL texture";
if (QOpenGLContext::currentContext()) {
QOpenGLFunctions *funcs = QOpenGLContext::currentContext()->functions();
if (funcs)
funcs->glDeleteTextures(1, &m_glTextureName);
else
- qWarning() << "Could not delete texture, OpenGL context functions missing";
+ qCDebug(qLcEvrD3DPresentEngine) << "Could not delete texture, OpenGL context functions missing";
} else {
- qWarning() << "Could not delete texture, OpenGL context missing";
+ qCDebug(qLcEvrD3DPresentEngine) << "Could not delete texture, OpenGL context missing";
}
}
if (!m_wgl.wglDXCloseDeviceNV(m_d3dglHandle))
- qWarning() << "Failed to close D3D-GL device";
+ qCDebug(qLcEvrD3DPresentEngine) << "Failed to close D3D-GL device";
}
}
@@ -228,7 +228,7 @@ public:
m_d3dglHandle = m_wgl.wglDXOpenDeviceNV(m_device.get());
if (!m_d3dglHandle) {
- qWarning() << "Failed to open D3D device";
+ qCDebug(qLcEvrD3DPresentEngine) << "Failed to open D3D device";
return;
}
@@ -243,16 +243,16 @@ public:
if (m_wgl.wglDXLockObjectsNV(m_d3dglHandle, 1, &m_glHandle))
return;
- qWarning() << "Failed to lock OpenGL texture";
+ qCDebug(qLcEvrD3DPresentEngine) << "Failed to lock OpenGL texture";
m_wgl.wglDXUnregisterObjectNV(m_d3dglHandle, m_glHandle);
} else {
- qWarning() << "Could not register D3D9 texture in OpenGL";
+ qCDebug(qLcEvrD3DPresentEngine) << "Could not register D3D9 texture in OpenGL";
}
funcs->glDeleteTextures(1, &m_glTextureName);
m_glTextureName = 0;
} else {
- qWarning() << "Failed generate texture names, OpenGL context functions missing";
+ qCDebug(qLcEvrD3DPresentEngine) << "Failed generate texture names, OpenGL context functions missing";
}
}
@@ -588,7 +588,7 @@ QVideoFrame D3DPresentEngine::makeVideoFrame(IMFSample *sample)
if (SUCCEEDED(hr))
vb = new D3D11TextureVideoBuffer(m_device, sample, d3d11tex);
else
- qWarning() << "Failed to obtain D3D11Texture2D from D3D9Texture2D handle";
+ qCDebug(qLcEvrD3DPresentEngine) << "Failed to obtain D3D11Texture2D from D3D9Texture2D handle";
}
}
#if QT_CONFIG(opengl)