summaryrefslogtreecommitdiffstats
path: root/src/qtmultimediaquicktools/qsgvideonode_texture_p.h
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-08-29 09:55:11 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-09-04 09:00:54 +0200
commitf5a115a2a49d8eb92b45997879be05b5c8f259f0 (patch)
tree76774190fe9b266ee8a52ecd09209fdf0346b215 /src/qtmultimediaquicktools/qsgvideonode_texture_p.h
parent03188b88025a849e15125eecb21395fa7f9a0158 (diff)
Fix crash when VideoOutput.sourceRect is requested but playback is stopped
When the playback is stopped, QAbstractVideoSurface::stop is called where current surface format is reset. And when sourceRect is requested before QAbstractVideoSurface::surfaceFormatChanged() is handled, it produces an ASSERT. Suggesting to use cached surfaceFormat instead of removing the ASSERT. To reproduce: MediaPlayer { onStatusChanged: console.log(output.sourceRect) } Change-Id: I73ad72f1e4968fe45266827ec5c7e3b36333ee30 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/qtmultimediaquicktools/qsgvideonode_texture_p.h')
0 files changed, 0 insertions, 0 deletions