diff --git a/src/core/barcodedecoder.cpp b/src/core/barcodedecoder.cpp index 9a3a4e96d3..2b68279c3f 100644 --- a/src/core/barcodedecoder.cpp +++ b/src/core/barcodedecoder.cpp @@ -133,7 +133,7 @@ void BarcodeDecoder::setVideoSink( QVideoSink *sink ) void BarcodeDecoder::decodeVideoFrame( const QVideoFrame &frame ) { - if ( mDecodingThread ) + if ( mDecodingThread || !frame.isValid() ) return; QImage image = frame.toImage();