Changes in / [135bc14:08246ee]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_vorbis.c
r135bc14 r08246ee 120 120 s->fid = fopen((const char *)s->path, "wb"); 121 121 if (!s->fid) { 122 char errorstr[256]; 123 AUBIO_STRERROR(errno, errorstr, sizeof(errorstr)); 124 AUBIO_ERR("sink_vorbis: Error opening file \'%s\' (%s)\n", 122 AUBIO_STRERR("sink_vorbis: Error opening file \'%s\' (%s)\n", 125 123 s->path, errorstr); 126 124 return AUBIO_FAIL; … … 214 212 result &= (wrote == (unsigned)s->og.body_len); 215 213 if (result == 0) { 216 char errorstr[256]; 217 AUBIO_STRERROR(errno, errorstr, sizeof(errorstr)); 218 AUBIO_ERR("sink_vorbis: failed writing \'%s\' to disk (%s)\n", 214 AUBIO_STRERR("sink_vorbis: failed writing \'%s\' to disk (%s)\n", 219 215 s->path, errorstr); 220 216 return AUBIO_FAIL; … … 308 304 309 305 if (s->fid && fclose(s->fid)) { 310 char errorstr[256]; 311 AUBIO_STRERROR(errno, errorstr, sizeof(errorstr)); 312 AUBIO_ERR("sink_vorbis: Error closing file \'%s\' (%s)\n", 306 AUBIO_STRERR("sink_vorbis: Error closing file \'%s\' (%s)\n", 313 307 s->path, errorstr); 314 308 return AUBIO_FAIL;
Note: See TracChangeset
for help on using the changeset viewer.