# HG changeset patch # User arpi # Date 1007498131 0 # Node ID ac8b70dd5e45cd1a770aec4b086d1f0a4a7640d7 # Parent 66134af212789dbd541f07afc1e82063ac91074d use return 1; if interrupted - patch by Artur Skawina diff -r 66134af21278 -r ac8b70dd5e45 mencoder.c --- a/mencoder.c Tue Dec 04 17:54:08 2001 +0000 +++ b/mencoder.c Tue Dec 04 20:35:31 2001 +0000 @@ -234,9 +234,11 @@ //--------------------------------------------------------------------------- static int eof=0; +static int interrupted=0; static void exit_sighandler(int x){ eof=1; + interrupted=1; } int main(int argc,char* argv[], char *envp[]){ @@ -850,4 +852,5 @@ if(stream) free_stream(stream); // kill cache thread +return interrupted; }