code: public synchronized void setThreadFactory(ThreadFactory factory) {
  		 if(factory == null)
  			 factory = Executors.defaultThreadFactory();
  
  		threadFactory = factory;
  	 }
docs: This method sets the {@link ThreadFactory} to be used when new threads are
  created by frame grabbers created for this video device. By default, a
  video device instance will use the thread factory returned by
  <code>Executors#defaultThreadFactory()</code>. If this is not suitable, you
  can specify your own thread factory using this method.
  @param factory the {@link ThreadFactory} to use when creating new threads. If
  <code>null</code>, the default factory returned by
  <code>Executors#defaultThreadFactory()</code> will be used.