Mercurial > mplayer.hg
changeset 3320:ac8b70dd5e45
use return 1; if interrupted - patch by Artur Skawina <skawina@geocities.com>
author | arpi |
---|---|
date | Tue, 04 Dec 2001 20:35:31 +0000 |
parents | 66134af21278 |
children | 2f7b731602db |
files | mencoder.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }