Commit 774570f
committed
fakenect: replay index in an endless loop
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]>1 parent 986af12 commit 774570f
1 file changed
+33
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
160 | 171 | | |
161 | 172 | | |
162 | 173 | | |
| |||
211 | 222 | | |
212 | 223 | | |
213 | 224 | | |
214 | | - | |
215 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
216 | 232 | | |
217 | 233 | | |
218 | 234 | | |
| |||
509 | 525 | | |
510 | 526 | | |
511 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
512 | 543 | | |
513 | 544 | | |
514 | 545 | | |
| |||
0 commit comments