check_wav: return error on premature end of file.
[paraslash.git] / ortp_recv.c
index 98ca63ace8fe26c33a9f7d09aac351c18e03e471..905d580e1ba4dcf00872e40cf1119878e09794bb 100644 (file)
@@ -83,7 +83,7 @@ static int ortp_recv_pre_select(struct receiver_node *rn,
        return -1; /* we did not modify the fd sets */
 }
 
-static void compute_next_chunk(struct timeval *now, unsigned chunk_time,
+static void compute_next_chunk(unsigned chunk_time,
                struct private_ortp_recv_data *pord)
 {
        struct timeval chunk_tv = {0, chunk_time};
@@ -204,7 +204,7 @@ success:
                pord->c_bad = 0;
                pord->next_chunk = now;
        }
-       compute_next_chunk(&now, chunk_time, pord);
+       compute_next_chunk(chunk_time, pord);
        return 1;
 err_out:
        freemsg(mp);