diff --git a/src/ccextractor.c b/src/ccextractor.c index 88a9fafa..8a9f05fc 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -49,6 +49,14 @@ void sigint_handler(int sig) exit(EXIT_SUCCESS); } + +void print_end_msg() +{ + mprint("Issues? Open a ticket here\n"); + mprint("https://github.com/CCExtractor/ccextractor/issues\n"); +} + + struct ccx_s_options ccx_options; int main(int argc, char *argv[]) { @@ -434,14 +442,13 @@ int main(int argc, char *argv[]) if (!ret) mprint("\nNo captions were found in input.\n"); - mprint("Issues? Open a ticket here\n"); - mprint("https://github.com/CCExtractor/ccextractor/issues\n"); + print_end_msg(); + if (show_myth_banner) { mprint("NOTICE: Due to the major rework in 0.49, we needed to change part of the timing\n"); mprint("code in the MythTV's branch. Please report results to the address above. If\n"); mprint("something is broken it will be fixed. Thanks\n"); } - return ret ? EXIT_OK : EXIT_NO_CAPTIONS; } diff --git a/src/lib_ccx/lib_ccx.h b/src/lib_ccx/lib_ccx.h index 08ec9718..581f040c 100644 --- a/src/lib_ccx/lib_ccx.h +++ b/src/lib_ccx/lib_ccx.h @@ -151,6 +151,9 @@ struct lib_ccx_ctx struct lib_ccx_ctx* init_libraries(struct ccx_s_options *opt); void dinit_libraries( struct lib_ccx_ctx **ctx); +//ccextractor.c +void print_end_msg(); + //params.c int parse_parameters (struct ccx_s_options *opt, int argc, char *argv[]); void print_usage (void); diff --git a/src/lib_ccx/utility.c b/src/lib_ccx/utility.c index 52ecdcb2..9dc59dd1 100644 --- a/src/lib_ccx/utility.c +++ b/src/lib_ccx/utility.c @@ -265,6 +265,7 @@ void fatal(int exit_code, const char *fmt, ...) fprintf(stderr, "\rError: "); vfprintf(stderr, fmt, args); fprintf(stderr, "\n"); + print_end_msg(); va_end(args); exit(exit_code); }