Commit Diff
- Commit:
237ea00efb38e4f4408ead5b7805aa612769e323
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
- Message:
- reset the clock in cwstart This is a workaround to guard against the possibility that the onmove callback is not called at all. This happens if playback has not started before cwstop(), and hence sio_stop(), is called.
- Actions:
- Patch | Tree
--- cw.c +++ cw.c @@ -368,6 +368,7 @@ cwstart() timestamp("cwstart()\n"); #endif writ = pos = 0; + clock_gettime(CLOCK_MONOTONIC, &tplay); /* onmove(0) will update this */ if (!sio_start(hdl)) errx(1, "sio_start failed"); #ifdef DEBUGTIME