- Timestamp:
- Dec 19, 2018, 3:47:31 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- 65628c4
- Parents:
- 99365e9 (diff), eba24c59 (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/sink_flac.c
r99365e9 rd64f56d 64 64 FLAC__StreamEncoder* encoder; 65 65 FLAC__int32 *buffer; 66 FLAC__StreamMetadata * metadata[2];66 FLAC__StreamMetadata **metadata; 67 67 }; 68 68 … … 165 165 if (!ok) { 166 166 AUBIO_ERR("sink_flac: failed setting metadata for %s\n", s->path); 167 goto failure; 168 } 169 170 s->metadata = AUBIO_ARRAY(FLAC__StreamMetadata*, 2); 171 if (!s->metadata) { 172 AUBIO_ERR("sink_flac: failed allocating memory for %s\n", s->path); 167 173 goto failure; 168 174 } … … 324 330 if (s->metadata) { 325 331 // clean up metadata after stream finished 326 FLAC__metadata_object_delete(s->metadata[0]); 327 FLAC__metadata_object_delete(s->metadata[1]); 332 if (s->metadata[0]) 333 FLAC__metadata_object_delete(s->metadata[0]); 334 if (s->metadata[1]) 335 FLAC__metadata_object_delete(s->metadata[1]); 336 AUBIO_FREE(s->metadata); 328 337 } 329 338
Note: See TracChangeset
for help on using the changeset viewer.