|
|
|
@ -25,10 +25,8 @@ static void meta_free(void *ptr) { |
|
|
|
metafile_t *mf = ptr; |
|
|
|
|
|
|
|
dbg("freeing metafile info for %s", mf->name); |
|
|
|
if (output_enabled) { |
|
|
|
output_close(mf->mix_out); |
|
|
|
mix_destroy(mf->mix); |
|
|
|
} |
|
|
|
output_close(mf->mix_out); |
|
|
|
mix_destroy(mf->mix); |
|
|
|
g_string_chunk_free(mf->gsc); |
|
|
|
for (int i = 0; i < mf->streams->len; i++) { |
|
|
|
stream_t *stream = g_ptr_array_index(mf->streams, i); |
|
|
|
@ -36,7 +34,7 @@ static void meta_free(void *ptr) { |
|
|
|
stream_free(stream); |
|
|
|
} |
|
|
|
g_ptr_array_free(mf->streams, TRUE); |
|
|
|
if (output_enabled) |
|
|
|
if (mf->ssrc_hash) |
|
|
|
g_hash_table_destroy(mf->ssrc_hash); |
|
|
|
g_slice_free1(sizeof(*mf), mf); |
|
|
|
} |
|
|
|
|