if (chk_barrier("eof", &now, &eof_barrier, &the_timeout, 1) < 0)
return &the_timeout;
if (chk_barrier("data send", &now, &data_send_barrier,
- &the_timeout, 1) < 0)
+ &the_timeout, 1) < 0)
return &the_timeout;
if (mmd->audio_format < 0 || !afs_playing() || !audio_file)
return NULL;
senders[i].shutdown_clients();
if (af) {
struct timeval now;
- if (!afs_paused() || mmd->chunks_sent) {
- gettimeofday(&now, NULL);
+ gettimeofday(&now, NULL);
+ if (!afs_paused() || mmd->chunks_sent)
tv_add(&af->eof_tv, &now, &eof_barrier);
- }
if (afs_repos())
tv_add(&now, &announce_tv, &data_send_barrier);
if (mmd->new_afs_status_flags & AFS_NOMORE)
mmd->new_afs_status_flags &= ~(AFS_REPOS);
mmd->current_chunk = mmd->repos_request;
}
- ret = afs_compute_timeout();
+ ret = afs_compute_timeout();
if (!ret && !audio_file && afs_playing() &&
!(mmd->new_afs_status_flags & AFS_NOMORE)) {
PARA_DEBUG_LOG("%s", "ready and playing, but no audio file\n");