From 2e6b8f2ebf8131f906ab657764f9cc3100eee32b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 31 Mar 2013 18:30:03 +0000 Subject: [PATCH] vss: Switch to the alternative post select method. --- vss.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vss.c b/vss.c index cfa64a14..5b8c687d 100644 --- a/vss.c +++ b/vss.c @@ -1114,12 +1114,11 @@ static void vss_send(struct vss_task *vsst) } } -static void vss_post_select(struct sched *s, struct task *t) +static int vss_post_select(struct sched *s, struct task *t) { int ret, i; struct vss_task *vsst = container_of(t, struct vss_task, task); - if (mmd->sender_cmd_data.cmd_num >= 0) { int num = mmd->sender_cmd_data.cmd_num, sender_num = mmd->sender_cmd_data.sender_num; @@ -1151,6 +1150,7 @@ static void vss_post_select(struct sched *s, struct task *t) (vss_next() && vss_playing())) tv_add(now, &vsst->announce_tv, &vsst->data_send_barrier); vss_send(vsst); + return 0; } /** @@ -1174,7 +1174,8 @@ void init_vss_task(int afs_socket, struct sched *s) vsst->header_interval.tv_sec = 5; /* should this be configurable? */ vsst->afs_socket = afs_socket; vsst->task.pre_select = vss_pre_select; - vsst->task.post_select = vss_post_select; + vsst->task.new_post_select = vss_post_select; + vsst->task.post_select = NULL; ms2tv(announce_time, &vsst->announce_tv); PARA_INFO_LOG("announce timeval: %lums\n", tv2ms(&vsst->announce_tv)); INIT_LIST_HEAD(&fec_client_list); -- 2.39.5