Better format selection by using more FPS than requested in order to match the...
Better format selection by using more FPS than requested in order to match the requested FPS. Fix to avoid changing format that is the same by checking only used attributes with a tolerance on float. Allow calling start when running. Allow stopping filter in all cases in order to ignore current sample requests. Ignore few frames to be able to change format while running and introduce read sample events to wake stop request thread. Fallback to flush the device to cancel sample requests if requests are still pending. Add more time to flush for slow devices. Fix blocking thread while flushing by leaving critical section. Restart the capture at the end after taking account of the new configurations in order to avoid errors on frames. Add more debug log.