Update VideoThread.cpp

Fixed a bug in the condition
Merge pull request #264 from lom2k/patch-1

Fixed a bug in the condition