Changeset 057ecee for src/io


Ignore:
Timestamp:
Jan 8, 2019, 7:21:22 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Children:
977a5c3
Parents:
ba740ea (diff), 65a4fb4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into feature/crepe

Location:
src/io
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink.c

    rba740ea r057ecee  
    136136
    137137void del_aubio_sink(aubio_sink_t * s) {
    138   AUBIO_ASSERT(s);
     138  //AUBIO_ASSERT(s);
    139139  if (s && s->s_del && s->sink)
    140140    s->s_del((void *)s->sink);
  • src/io/sink_wavwrite.c

    rba740ea r057ecee  
    212212
    213213  // fwrite(*, *, 1, s->fid) was called 13 times, check success
    214   if (written != 13) {
    215     AUBIO_STRERR("sink_wavwrite: writing header to %s failed, expected %d"
    216         " write but got only %d (%s)\n", s->path, 13, written, errorstr);
     214  if (written != 13 || fflush(s->fid)) {
     215    AUBIO_STRERR("sink_wavwrite: writing header to %s failed"
     216        " (wrote %d/%d, %s)\n", s->path, written, 13, errorstr);
     217    fclose(s->fid);
     218    s->fid = NULL;
    217219    return AUBIO_FAIL;
    218220  }
  • src/io/source.c

    rba740ea r057ecee  
    139139
    140140void del_aubio_source(aubio_source_t * s) {
    141   AUBIO_ASSERT(s);
     141  //AUBIO_ASSERT(s);
    142142  if (s && s->s_del && s->source)
    143143    s->s_del((void *)s->source);
Note: See TracChangeset for help on using the changeset viewer.