Changeset 00c9444 for src


Ignore:
Timestamp:
Dec 21, 2018, 3:28:05 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
4cb2d54
Parents:
5fc6e81
Message:

[sink_apple_audio] preset_format does not fail on empty format string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_apple_audio.c

    r5fc6e81 r00c9444  
    144144    s->fileType = kAudioFileAIFFType;
    145145  } else {
    146     AUBIO_WRN("sink_apple_audio: could not guess format for %s,"
    147        " using default (wav)\n", s->path);
    148146    s->fileType = kAudioFileWAVEType;
    149     return AUBIO_FAIL;
     147    if (fmt && strnlen(fmt, PATH_MAX)) {
     148      AUBIO_WRN("sink_apple_audio: could not guess format for %s,"
     149         " using default (wav)\n", s->path);
     150      return AUBIO_FAIL;
     151    }
    150152  }
    151153  return AUBIO_OK;
Note: See TracChangeset for help on using the changeset viewer.