Changeset 0440778 for src/io/source_apple_audio.c
- Timestamp:
- Dec 17, 2018, 3:44:29 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- 68b991e
- Parents:
- e6a5aa5 (diff), d81e16d (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_apple_audio.c
re6a5aa5 r0440778 60 60 aubio_source_apple_audio_t * s = AUBIO_NEW(aubio_source_apple_audio_t); 61 61 62 if (path == NULL ) {62 if (path == NULL || strnlen(path, PATH_MAX) < 1) { 63 63 AUBIO_ERROR("source_apple_audio: Aborted opening null path\n"); 64 64 goto beach; … … 86 86 87 87 beach: 88 AUBIO_FREE(s);88 del_aubio_source_apple_audio(s); 89 89 return NULL; 90 90 } … … 95 95 UInt32 propSize; 96 96 97 if (s->path) AUBIO_FREE(s->path);98 97 s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX) + 1); 99 98 strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); … … 294 293 295 294 void del_aubio_source_apple_audio(aubio_source_apple_audio_t * s){ 295 AUBIO_ASSERT(s); 296 296 aubio_source_apple_audio_close (s); 297 297 if (s->path) AUBIO_FREE(s->path); 298 298 freeAudioBufferList(&s->bufferList); 299 299 AUBIO_FREE(s); 300 return;301 300 } 302 301
Note: See TracChangeset
for help on using the changeset viewer.