Fix compiler warning

This commit is contained in:
Johannes Schriewer 2024-03-04 01:21:57 +01:00
parent b86eb3c83e
commit 851a6f0e57

View file

@ -24,7 +24,9 @@ AudioPipelineStatus sink_file_link(AudioPipelineElement *self, AudioPipelineElem
if (context->fp != NULL) {
fseek(context->fp, 0, SEEK_SET);
ftruncate(fileno(context->fp), 0);
if (ftruncate(fileno(context->fp), 0) != 0) {
fprintf(stderr, "WARN: ftruncate failed with %d\n", errno);
}
}
source->next = self;