Changeset 59109e9


Ignore:
Timestamp:
Dec 23, 2018, 12:04:04 AM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
08246ee
Parents:
131d1eb
Message:

[sink_vorbis] use AUBIO_STRERR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_vorbis.c

    r131d1eb r59109e9  
    120120  s->fid = fopen((const char *)s->path, "wb");
    121121  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",
    125123        s->path, errorstr);
    126124    return AUBIO_FAIL;
     
    214212  result &= (wrote == (unsigned)s->og.body_len);
    215213  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",
    219215        s->path, errorstr);
    220216    return AUBIO_FAIL;
     
    308304
    309305  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",
    313307        s->path, errorstr);
    314308    return AUBIO_FAIL;
Note: See TracChangeset for help on using the changeset viewer.