lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
980 stars 388 forks source link

fix play-pause play issue #327 #328

Closed Ahme3issa closed 1 year ago

Ahme3issa commented 4 years ago

as PlayerThread gets to sleep for waitms time then you would hit stop/pause after you already called log.readNext so you will always skip what you read once you play again so the fix purposes to log the each time we run playthread so in case we get interrupted during sleep of waitms then we can get back to where the last play was trying to play but its time didn't come yet