Browse Source

TT#111357 fix output file names in case of output re-config

closes #1229

Change-Id: I7bba3f59bc5b87997b291414775e93fe682e4c93
pull/1232/head
Richard Fuchs 5 years ago
parent
commit
f7ff1367ef
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      recording-daemon/output.c

+ 4
- 4
recording-daemon/output.c View File

@ -286,10 +286,6 @@ static int output_shutdown(output_t *output) {
output->fmtctx = NULL; output->fmtctx = NULL;
output->avst = NULL; output->avst = NULL;
g_clear_pointer(&output->full_filename, g_free);
g_clear_pointer(&output->file_path, g_free);
g_clear_pointer(&output->file_name, g_free);
g_clear_pointer(&output->filename, g_free);
return ret; return ret;
} }
@ -303,6 +299,10 @@ void output_close(output_t *output) {
else else
db_delete_stream(output); db_delete_stream(output);
encoder_free(output->encoder); encoder_free(output->encoder);
g_clear_pointer(&output->full_filename, g_free);
g_clear_pointer(&output->file_path, g_free);
g_clear_pointer(&output->file_name, g_free);
g_clear_pointer(&output->filename, g_free);
g_slice_free1(sizeof(*output), output); g_slice_free1(sizeof(*output), output);
} }


Loading…
Cancel
Save