diff options
author | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2015-03-24 16:41:51 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2015-04-07 11:58:41 +0000 |
commit | de700906a19a6b0b0aa465cf2767c4f8041ea88e (patch) | |
tree | 738b2415a93b597d7b06869368cfc6b962534094 /src | |
parent | cbbcf4f3a54fe981ad9d7e649572f86bcdbaf4c6 (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')
-rw-r--r-- | src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp b/src/qtmultimediaquicktools/qdeclarativevideooutput_render.cpp index 7970ae14a..f4efe47e7 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; } |