when i was recording from 2 cameras at the same time (> 2 source instances),
the static variables (phase, index) were updated by each instance
individually.

so frame 1: became 00001 for camera1 and 00002 for camera2

and depending on what the phase value was, sometimes i ended up with ~100
images for camera1 and only ~10 images for camera2, because they didn't
record at the same time.


On Tue, Jul 23, 2013 at 11:59 AM, Emmanuel Durand
<notifications@github.com>wrote:

> In src/source.cpp:
>
> > @@ -643,14 +645,13 @@ void Source::createHdri(cv::Mat& pImg)
> >  /*************/
> >  void Source::saveToFile(cv::Mat& pImg)
> >  {
> > -    static int phase = 0;
>
> Why did you move these two variables (phase and index) to the class
> definition? Do you use them elsewhere, or did you have any issue with them
> being static?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/paperManu/blobserver/pull/1/files#r5348609>
> .
>