Fix compiler warning
This commit is contained in:
parent
b86eb3c83e
commit
851a6f0e57
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue