- Timestamp:
- Dec 23, 2018, 12:02:55 AM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- 07c76d00
- Parents:
- 1c565c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_flac.c
r1c565c0 r6245b52 34 34 #include <FLAC/metadata.h> 35 35 #include <FLAC/stream_encoder.h> 36 37 #include <string.h> // strerror38 #include <errno.h> // errno39 36 40 37 #define MAX_WRITE_SIZE 4096 … … 146 143 s->fid = fopen((const char *)s->path, "wb"); 147 144 if (!s->fid) { 148 AUBIO_ ERR("sink_flac: failed opening %s, %s\n", s->path, strerror(errno));145 AUBIO_STRERR("sink_flac: Failed opening %s (%s)\n", s->path, errorstr); 149 146 return AUBIO_FAIL; 150 147 } … … 348 345 349 346 if (s->fid && fclose(s->fid)) { 350 AUBIO_ERR("sink_flac: Error closing file %s (%s)\n", 351 s->path, strerror(errno)); 347 AUBIO_STRERR("sink_flac: Error closing file %s (%s)\n", s->path, errorstr); 352 348 ret &= AUBIO_FAIL; 353 349 }
Note: See TracChangeset
for help on using the changeset viewer.