diff --git a/android/ffmpeg-kit-android-lib/src/main/cpp/fftools_ffprobe.c b/android/ffmpeg-kit-android-lib/src/main/cpp/fftools_ffprobe.c index ab26408..692c180 100644 --- a/android/ffmpeg-kit-android-lib/src/main/cpp/fftools_ffprobe.c +++ b/android/ffmpeg-kit-android-lib/src/main/cpp/fftools_ffprobe.c @@ -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 * -------------------------------------------------------- @@ -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) diff --git a/apple/src/fftools_ffprobe.c b/apple/src/fftools_ffprobe.c index ab26408..692c180 100644 --- a/apple/src/fftools_ffprobe.c +++ b/apple/src/fftools_ffprobe.c @@ -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 * -------------------------------------------------------- @@ -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) diff --git a/linux/src/fftools_ffprobe.c b/linux/src/fftools_ffprobe.c index ab26408..692c180 100644 --- a/linux/src/fftools_ffprobe.c +++ b/linux/src/fftools_ffprobe.c @@ -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 * -------------------------------------------------------- @@ -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)