From dad09ff93f5df1ec987493f404d43cd16991e992 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 29 Aug 2011 07:03:24 +0200 Subject: cmdutils: move exit_program() declaration to cmdutils from avconv Allows cmdutils to call each tool's own cleanup function. --- avprobe.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'avprobe.c') diff --git a/avprobe.c b/avprobe.c index f0ba6bae09..a8a0f14eb7 100644 --- a/avprobe.c +++ b/avprobe.c @@ -56,6 +56,11 @@ static const char *unit_hertz_str = "Hz" ; static const char *unit_byte_str = "byte" ; static const char *unit_bit_per_second_str = "bit/s"; +void exit_program(int ret) +{ + exit(ret); +} + static char *value_string(char *buf, int buf_size, double val, const char *unit) { if (unit == unit_second_str && use_value_sexagesimal_format) { -- cgit v1.2.3