Changes in src/io/sink_flac.c [eba24c59:68b991e]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_flac.c
reba24c59 r68b991e 64 64 FLAC__StreamEncoder* encoder; 65 65 FLAC__int32 *buffer; 66 FLAC__StreamMetadata * *metadata;66 FLAC__StreamMetadata *metadata[2]; 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);173 167 goto failure; 174 168 } … … 330 324 if (s->metadata) { 331 325 // clean up metadata after stream finished 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); 326 FLAC__metadata_object_delete(s->metadata[0]); 327 FLAC__metadata_object_delete(s->metadata[1]); 337 328 } 338 329
Note: See TracChangeset
for help on using the changeset viewer.