Changeset b643a33 for src/io/sink_sndfile.c
- Timestamp:
- Apr 21, 2016, 7:01:50 PM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 26a6af7
- Parents:
- ae5d58a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_sndfile.c
rae5d58a rb643a33 57 57 aubio_sink_sndfile_t * s = AUBIO_NEW(aubio_sink_sndfile_t); 58 58 s->max_size = MAX_SIZE; 59 s->path = path;60 59 61 60 if (path == NULL) { … … 63 62 return NULL; 64 63 } 64 65 if (s->path) AUBIO_FREE(s->path); 66 s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX)); 67 strncpy(s->path, path, strnlen(path, PATH_MAX)); 65 68 66 69 s->samplerate = 0; … … 220 223 void del_aubio_sink_sndfile(aubio_sink_sndfile_t * s){ 221 224 if (!s) return; 225 if (s->path) AUBIO_FREE(s->path); 222 226 aubio_sink_sndfile_close(s); 223 227 AUBIO_FREE(s->scratch_data);
Note: See TracChangeset
for help on using the changeset viewer.