mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-07-18 01:31:54 +00:00
refactoring
This commit is contained in:
@@ -67,9 +67,7 @@ void us_output_file_write(void *v_output, const us_frame_s *frame) {
|
||||
|
||||
void us_output_file_destroy(void *v_output) {
|
||||
us_output_file_s *output = (us_output_file_s *)v_output;
|
||||
if (output->base64_data) {
|
||||
free(output->base64_data);
|
||||
}
|
||||
US_DELETE(output->base64_data, free);
|
||||
if (output->fp && output->fp != stdout) {
|
||||
if (fclose(output->fp) < 0) {
|
||||
US_LOG_PERROR("Can't close output file");
|
||||
|
||||
@@ -300,9 +300,7 @@ static int _dump_sink(
|
||||
retval = -1;
|
||||
|
||||
ok:
|
||||
if (sink) {
|
||||
us_memsink_destroy(sink);
|
||||
}
|
||||
US_DELETE(sink, us_memsink_destroy);
|
||||
us_frame_destroy(frame);
|
||||
|
||||
US_LOG_INFO("Bye-bye");
|
||||
|
||||
Reference in New Issue
Block a user