summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-08 04:34:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-08 04:34:11 +0200
commitf982d006bb9e5ffb6bc032e62b5f34177a83df85 (patch)
treed0c88573dd27d0633675955165a64b036cc10974 /ffprobe.c
parent4cd066b69c08cd91aa4b5e40deb4b2f5c7e651ee (diff)
parent636ced8e1dc8248a1353b416240b93d70ad03edb (diff)
Merge commit '636ced8e1dc8248a1353b416240b93d70ad03edb'
* commit '636ced8e1dc8248a1353b416240b93d70ad03edb': cmdutils: wrap exit explicitly Conflicts: avprobe.c cmdutils.c ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 28c954daae..d4adde06e8 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -159,7 +159,7 @@ static uint64_t *nb_streams_packets;
static uint64_t *nb_streams_frames;
static int *selected_streams;
-static void exit_program(void)
+static void ffprobe_cleanup(int ret)
{
int i;
for (i = 0; i < FF_ARRAY_ELEMS(sections); i++)
@@ -2123,7 +2123,7 @@ static void opt_input_file(void *optctx, const char *arg)
av_log(NULL, AV_LOG_ERROR,
"Argument '%s' provided as input filename, but '%s' was already specified.\n",
arg, input_filename);
- exit(1);
+ exit_program(1);
}
if (!strcmp(arg, "-"))
arg = "pipe:";
@@ -2273,7 +2273,7 @@ int main(int argc, char **argv)
int ret, i;
av_log_set_flags(AV_LOG_SKIP_REPEATED);
- atexit(exit_program);
+ register_exit(ffprobe_cleanup);
options = real_options;
parse_loglevel(argc, argv, options);