Changeset 6245b52 for src/io/sink_flac.c


Ignore:
Timestamp:
Dec 23, 2018, 12:02:55 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
07c76d00
Parents:
1c565c0
Message:

[sink_flac] use AUBIO_STRERR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_flac.c

    r1c565c0 r6245b52  
    3434#include <FLAC/metadata.h>
    3535#include <FLAC/stream_encoder.h>
    36 
    37 #include <string.h> // strerror
    38 #include <errno.h> // errno
    3936
    4037#define MAX_WRITE_SIZE 4096
     
    146143  s->fid = fopen((const char *)s->path, "wb");
    147144  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);
    149146    return AUBIO_FAIL;
    150147  }
     
    348345
    349346  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);
    352348    ret &= AUBIO_FAIL;
    353349  }
Note: See TracChangeset for help on using the changeset viewer.