Update VideoThread.cpp

Fixed a bug in the condition