Skip to content

Conversation

rib
Copy link
Contributor

@rib rib commented Nov 28, 2017

As requested in #531 this splits out my patch for allowing a recording to be replayed in an endless loop.

I currently tend to think it's a good default to replay a recording in a loop (and although it's a change of behaviour, it doesn't seem likely to be one that would cause problems).

In case there is some use case overlooked though that depends on the old behaviour then users can set the environment variable:

FAKENECT_LOOP=0

(or some case variant of 'false', 'off' or 'no')

When the last line has been handled then the index gets closed and any
'prev' state is reset so that the next call to freenect_process_events
will re-open the index and start again from the first frame.

Since the Kinect camera doesn't normally spontaneously stop this seems
like a more natural behaviour.

In case there is some use case that would prefer to avoid looping over
frames then the previous behaviour can be got by setting
FAKENECT_LOOP=0 (or some case variant of 'false', 'off' or 'no')

Signed-off-by: Robert Bragg <[email protected]>
@piedar piedar added this to the v0.6.0 milestone Nov 29, 2017
@piedar piedar merged commit 6749db9 into OpenKinect:master Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants