Added a check of the DetectionBasedTracker's inner state in the main thread function of this class.  This change should fix a multithread bug in the class.
Added a check of the DetectionBasedTracker's inner state in the main thread function of this class. 
This change should fix a multithread bug in the class.


apavlenko/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,apavlenko/opencv