if (!vss_playing() || !map)
return NULL;
vss_next_chunk_time(&next_chunk);
- if (chk_barrier(audio_format_name(mmd->afd.afsi.audio_format_id),
- &now, &next_chunk, &the_timeout, 0) < 0)
+ if (chk_barrier("chunk", &now, &next_chunk, &the_timeout, 0) < 0)
return &the_timeout;
/* chunk is due or bof */
the_timeout.tv_sec = 0;
strncpy(mmd->afd.afhi.info_string, tmp, sizeof(mmd->afd.afhi.info_string));
mmd->afd.afhi.info_string[sizeof(mmd->afd.afhi.info_string) - 1] = '\0';
free(tmp);
- mmd->afd.path[0] = '\0';
- mmd->afd.afsi.lyrics_id = 0;
- mmd->afd.afsi.image_id = 0;
mmd->mtime = 0;
- mmd->afd.attributes_string[0] = '\0';
mmd->size = 0;
mmd->events++;
}
if (ret < 0)
goto err;
shm_destroy(shmid);
- PARA_NOTICE_LOG("next audio file: %s (%lu chunks)\n", mmd->afd.path,
- mmd->afd.afhi.chunks_total);
ret = fstat(passed_fd, &statbuf);
if (ret < 0) {
PARA_ERROR_LOG("fstat error:\n");
map = para_mmap(mmd->size, PROT_READ, MAP_PRIVATE,
passed_fd, 0);
close(passed_fd);
- mmd->afd.afhi.header_len = 0; /* default: no header */
mmd->chunks_sent = 0;
mmd->current_chunk = 0;
mmd->offset = 0;