From f0696d396f2023df8311a6d90b11ea80240144c7 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Wed, 28 Sep 2016 12:15:21 -0700 Subject: [PATCH] SIGTERM stuff --- src/lib_ccx/lib_ccx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib_ccx/lib_ccx.h b/src/lib_ccx/lib_ccx.h index 4c0ec9fc..fd0d3c43 100644 --- a/src/lib_ccx/lib_ccx.h +++ b/src/lib_ccx/lib_ccx.h @@ -246,7 +246,7 @@ void timestamp_to_srttime(uint64_t timestamp, char *buffer); void timestamp_to_smptetttime(uint64_t timestamp, char *buffer); int levenshtein_dist (const uint64_t *s1, const uint64_t *s2, unsigned s1len, unsigned s2len); void millis_to_date (uint64_t timestamp, char *buffer, enum ccx_output_date_format date_format, char millis_separator); -void create_signal(void); +void create_signal(int sigtype); void signal_handler(int sig_type); struct encoder_ctx* change_filename(struct encoder_ctx*); #ifndef _WIN32 @@ -280,7 +280,7 @@ extern int firstcall; extern unsigned char tspacket[188]; extern unsigned char *last_pat_payload; extern unsigned last_pat_length; - +extern volatile int terminate_asap; #define HAUPPAGE_CCPID 1003 // PID for CC's in some Hauppauge recordings