summaryrefslogtreecommitdiffstats
path: root/src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@theqtcompany.com>2015-03-24 16:41:51 +0100
committerYoann Lopes <yoann.lopes@theqtcompany.com>2015-04-07 11:58:41 +0000
commitde700906a19a6b0b0aa465cf2767c4f8041ea88e (patch)
tree738b2415a93b597d7b06869368cfc6b962534094 /src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp
parentcbbcf4f3a54fe981ad9d7e649572f86bcdbaf4c6 (diff)
Don't error out when presenting empty frames in QSGVideoItemSurface.
There's no good reason to do so. Backends can actually provide empty frames, for example when flushing the pipeline or after stopping playback. Change-Id: I687c12b667e31b25e91c3201f59c52a8969d8e05 Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Diffstat (limited to 'src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp')
-rw-r--r--src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp b/src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp
index 7970ae14..f4efe47e 100644
--- a/src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp
+++ b/src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp
@@ -444,10 +444,6 @@ void QSGVideoItemSurface::stop()
bool QSGVideoItemSurface::present(const QVideoFrame &frame)
{
- if (!frame.isValid()) {
- qWarning() << Q_FUNC_INFO << "I'm getting bad frames here...";
- return false;
- }
m_backend->present(frame);
return true;
}