]> git.tue.mpg.de Git - paraslash.git/commitdiff
Simplify compute_slice_timeout().
authorAndre Noll <maan@systemlinux.org>
Sat, 28 Feb 2009 17:21:55 +0000 (18:21 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 28 Feb 2009 17:21:55 +0000 (18:21 +0100)
vss.c

diff --git a/vss.c b/vss.c
index 330bba6ab65c397b19bc1a25d9310bd15bcec70e..17bd5fbc1a85af362b30bb104f00a82f7190e200 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -335,21 +335,16 @@ static void compute_slice_timeout(struct timeval *timeout)
        assert(vss_playing());
        list_for_each_entry(fc, &fec_client_list, node) {
                struct timeval diff;
-               int ret = next_slice_is_due(fc, &diff);
 
-               // PARA_NOTICE_LOG("diff: %lu, ret: %d\n", tv2ms(&diff), ret);
-               if (ret) {
+               if (next_slice_is_due(fc, &diff)) {
                        timeout->tv_sec = 0;
                        timeout->tv_usec = 0;
-                       goto out;
+                       return;
                }
                /* timeout = min(timeout, diff) */
                if (tv_diff(&diff, timeout, NULL) < 0)
                        *timeout = diff;
        }
-out:
-       return;
-       PARA_NOTICE_LOG("slice timeout: %lu:%lu\n", (long unsigned)timeout->tv_sec, (long unsigned)timeout->tv_usec);
 }
 
 /**