/**
* Remove one entry from the list of active fec clients.
*
- * \param result The client to be removed.
+ * \param fc The client to be removed.
*/
void vss_del_fec_client(struct fec_client *fc)
{
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);
}
/**