StevenHickson / RPiVideoLooper

Video Looper for the Raspberry Pi
Other
98 stars 36 forks source link

First Video Skipped on First While Loop #14

Open rmcaninch opened 9 years ago

rmcaninch commented 9 years ago

The counter variable should probably be incremented at the bottom of the loop. Currently it skips the 0 video until it makes the 2nd pass through the list of videos.

RichShumaker commented 7 years ago

This is the exact issue I am having as well. Do you know of a work around or way to make it work correctly? Is there a change to the code that could be made to make it work. I see the increment should be at the bottom of the loop. Any code changes would be helpful as this is driving me batty as I have an exact order and it is not following it.

Thank you very much.

rmcaninch commented 7 years ago

Been awhile since I looked at this. But in startvideos.sh move line 45 "let current+=1" to the end of the if block. So move it to right before the fi

That looks like it will do it.

RichShumaker commented 7 years ago

@rmcaninch thanks for the update. I just noticed this as my notifications didn't notify me. Need to update this and try it out. Thanks again for your help.