[pulseaudio-commits] r2324 - in /branches/glitch-free/src/pulsecore: rtpoll.c rtpoll.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu May 1 12:17:53 PDT 2008
Author: lennart
Date: Thu May 1 21:17:52 2008
New Revision: 2324
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2324&root=pulseaudio&view=rev
Log:
change pa_rtpoll_set_timer_absolute() to take a pa_usec_t instead of struct timeval
Modified:
branches/glitch-free/src/pulsecore/rtpoll.c
branches/glitch-free/src/pulsecore/rtpoll.h
Modified: branches/glitch-free/src/pulsecore/rtpoll.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/rtpoll.c?rev=2324&root=pulseaudio&r1=2323&r2=2324&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/rtpoll.c (original)
+++ branches/glitch-free/src/pulsecore/rtpoll.c Thu May 1 21:17:52 2008
@@ -502,11 +502,10 @@
#endif
}
-void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, const struct timeval *ts) {
- pa_assert(p);
- pa_assert(ts);
-
- p->next_elapse = *ts;
+void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, pa_usec_t usec) {
+ pa_assert(p);
+
+ pa_timeval_store(&p->next_elapse, usec);
p->timer_enabled = TRUE;
update_timer(p);
Modified: branches/glitch-free/src/pulsecore/rtpoll.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/rtpoll.h?rev=2324&root=pulseaudio&r1=2323&r2=2324&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/rtpoll.h (original)
+++ branches/glitch-free/src/pulsecore/rtpoll.h Thu May 1 21:17:52 2008
@@ -74,7 +74,7 @@
* cleanly. */
int pa_rtpoll_run(pa_rtpoll *f, pa_bool_t wait);
-void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, const struct timeval *ts);
+void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, pa_usec_t usec);
void pa_rtpoll_set_timer_relative(pa_rtpoll *p, pa_usec_t usec);
void pa_rtpoll_set_timer_disabled(pa_rtpoll *p);
More information about the pulseaudio-commits
mailing list