From 8ebf07762fef380a1842690d97934b7b043e42cb Mon Sep 17 00:00:00 2001 From: tux3 Date: Sat, 24 Oct 2015 03:30:42 +0200 Subject: [PATCH] VideoSurface: Release null frames --- src/video/videosurface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/videosurface.cpp b/src/video/videosurface.cpp index a2f250c95..4cff9b134 100644 --- a/src/video/videosurface.cpp +++ b/src/video/videosurface.cpp @@ -157,6 +157,8 @@ void VideoSurface::paintEvent(QPaintEvent*) if (lastFrame) { QImage frame = lastFrame->toQImage(rect().size()); + if (frame.isNull()) + lastFrame.reset(); painter.drawImage(boundingRect, frame, frame.rect(), Qt::NoFormatConversion); } else