From: Andre Noll Date: Sat, 7 Aug 2010 16:33:04 +0000 (+0200) Subject: vss: need_audio_header(): Change return value to bool. X-Git-Tag: v0.4.5~16 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=edeb499676e6d042ef1a913914a9fcb45a8cadde;hp=12379df1a1f89645e04c393d614937c0e6439ae0 vss: need_audio_header(): Change return value to bool. Obviously an equivalent transformation. --- diff --git a/vss.c b/vss.c index 383a8fda..2e952eb4 100644 --- a/vss.c +++ b/vss.c @@ -215,20 +215,20 @@ static void write_fec_header(struct fec_client *fc, struct vss_task *vsst) memset(buf + 24, 0, 7); } -static int need_audio_header(struct fec_client *fc, struct vss_task *vsst) +static bool need_audio_header(struct fec_client *fc, struct vss_task *vsst) { if (!mmd->current_chunk) { tv_add(now, &vsst->header_interval, &fc->next_header_time); - return 0; + return false; } if (!vsst->header_buf) - return 0; - if (!vsst->header_len) - return 0; + return false; + if (vsst->header_len == 0) + return false; if (fc->group.num && tv_diff(&fc->next_header_time, now, NULL) > 0) - return 0; + return false; tv_add(now, &vsst->header_interval, &fc->next_header_time); - return 1; + return true; } static int num_slices(long unsigned bytes, int mps, int rs)