X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=vss.c;h=8c16c9582f376750ec17218354790aefda4cb12b;hp=96b2ba9eadcb71f2da13e5ccd6d00c08c328444f;hb=b15735ae7de59e0d9db43f23388d8ac47a6d2def;hpb=26d1bf2b7be9af211755c6fb90ff8de55e5a9bd3 diff --git a/vss.c b/vss.c index 96b2ba9e..8c16c958 100644 --- a/vss.c +++ b/vss.c @@ -227,8 +227,12 @@ static bool need_audio_header(struct fec_client *fc, struct vss_task *vsst) return false; if (vsst->header_len == 0) return false; - if (fc->group.num && tv_diff(&fc->next_header_time, now, NULL) > 0) - return false; + if (fc->group.num > 0) { + if (!fc->fcp->need_periodic_header) + return false; + if (tv_diff(&fc->next_header_time, now, NULL) > 0) + return false; + } tv_add(now, &vsst->header_interval, &fc->next_header_time); return true; }