Skip to content

Commit

Permalink
clean sections before starting a new execution, fixes #571
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Sep 19, 2022
1 parent 45ec8ed commit 39469da
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/ffmpeg-kit-android-lib/src/main/cpp/fftools_ffprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* - implemented writer_printf_printf using av_vlog
* - printf statements replaced with av_log
* - volatile dropped from thread local variables
* - sections cleaned before starting a new execution
*
* 01.2020
* --------------------------------------------------------
Expand Down Expand Up @@ -4045,6 +4046,10 @@ void ffprobe_var_cleanup() {

log_buffer = NULL;
log_buffer_size = 0;

for (int i = 0; i < FF_ARRAY_ELEMS(sections); i++) {
sections[i].show_all_entries = 0;
}
}

int ffprobe_execute(int argc, char **argv)
Expand Down
5 changes: 5 additions & 0 deletions apple/src/fftools_ffprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* - implemented writer_printf_printf using av_vlog
* - printf statements replaced with av_log
* - volatile dropped from thread local variables
* - sections cleaned before starting a new execution
*
* 01.2020
* --------------------------------------------------------
Expand Down Expand Up @@ -4045,6 +4046,10 @@ void ffprobe_var_cleanup() {

log_buffer = NULL;
log_buffer_size = 0;

for (int i = 0; i < FF_ARRAY_ELEMS(sections); i++) {
sections[i].show_all_entries = 0;
}
}

int ffprobe_execute(int argc, char **argv)
Expand Down
5 changes: 5 additions & 0 deletions linux/src/fftools_ffprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* - implemented writer_printf_printf using av_vlog
* - printf statements replaced with av_log
* - volatile dropped from thread local variables
* - sections cleaned before starting a new execution
*
* 01.2020
* --------------------------------------------------------
Expand Down Expand Up @@ -4045,6 +4046,10 @@ void ffprobe_var_cleanup() {

log_buffer = NULL;
log_buffer_size = 0;

for (int i = 0; i < FF_ARRAY_ELEMS(sections); i++) {
sections[i].show_all_entries = 0;
}
}

int ffprobe_execute(int argc, char **argv)
Expand Down

0 comments on commit 39469da

Please sign in to comment.