title: cvSetCaptureProperty CV_CAP_PROP_POS_FRAMES property not working with OpenMP
body: <p>I'm a complete noob using openCV and openMP and I really want to understand why the cvSetCaptureProperty  is not working with openMP. I'm using OpenCV and OpenMP on Visual Studio 2012.</p>
  
  <p>My code:</p>
  
  <pre><code>#pragma omp parallel
  for (int i=0;i&lt;3600;i++)
  {
       cvSetCaptureProperty(capture, CV_CAP_PROP_POS_FRAMES,i);
      frame = cvQueryFrame(capture);
      i++;
  }
  </code></pre>
  
  <p>The error message it returns me:</p>
  
  <pre><code>Unhandled exception at 0x71648EAB (opencv_ffmpeg248.dll) in pupilometry.exe: 0xC0000005: Access violation writing location 0xFEEEFEF6.
  </code></pre>
  
  <p>Someone know how to use cvSetCaptureProperty in a parallel way?</p>
  
  <p>Thanks</p>