rtclock: fix issues found by Lennart

This commit is contained in:
Marc-André Lureau 2009-06-20 16:52:41 +03:00
parent 0955e3d45b
commit e4d914c945
4 changed files with 26 additions and 12 deletions

View file

@ -176,6 +176,9 @@ static struct timeval* wallclock_from_rtclock(struct timeval *tv) {
struct timeval* pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, pa_bool_t rtclock) {
pa_assert(tv);
if (v == PA_USEC_INVALID)
return NULL;
pa_timeval_store(tv, v);
if (rtclock)