[pulseaudio-commits] r2461 - /trunk/src/pulsecore/rtpoll.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat May 17 02:59:36 PDT 2008


Author: lennart
Date: Sat May 17 11:59:34 2008
New Revision: 2461

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2461&root=pulseaudio&view=rev
Log:
add another assert to catch sleep time miscalculations easier

Modified:
    trunk/src/pulsecore/rtpoll.c

Modified: trunk/src/pulsecore/rtpoll.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/rtpoll.c?rev=2461&root=pulseaudio&r1=2460&r2=2461&view=diff
==============================================================================
--- trunk/src/pulsecore/rtpoll.c (original)
+++ trunk/src/pulsecore/rtpoll.c Sat May 17 11:59:34 2008
@@ -514,6 +514,9 @@
 void pa_rtpoll_set_timer_relative(pa_rtpoll *p, pa_usec_t usec) {
     pa_assert(p);
 
+    /* Scheduling a timeout for more than an hour is very very suspicious */
+    pa_assert(usec <= PA_USEC_PER_SEC*60ULL*60ULL);
+
     pa_rtclock_get(&p->next_elapse);
     pa_timeval_add(&p->next_elapse, usec);
     p->timer_enabled = TRUE;




More information about the pulseaudio-commits mailing list