kibsoft / QtMEL

Qt Media Encoding Library
GNU Lesser General Public License v2.1
67 stars 16 forks source link

Problem in function ScreenGrabber::drawPixmapsOntoFrame #25

Open abtimal opened 10 years ago

abtimal commented 10 years ago

When first called, timer.elapsed() gives a negative value and program is crash. If replace this code

if (timer.elapsed() != 0) { int timeAfterClick = timer.elapsed();

on this

int timeAfterClick = timer.elapsed(); if (timeAfterClick > 0) {

then all good.