mirror of
https://github.com/mpv-player/mpv
synced 2025-01-15 11:31:02 +00:00
use return 1; if interrupted - patch by Artur Skawina <skawina@geocities.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3321 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d18cf2ade3
commit
2f124ad8d2
@ -234,9 +234,11 @@ int dec_audio(sh_audio_t *sh_audio,unsigned char* buffer,int total){
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
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 @@ fclose(muxer_f);
|
||||
|
||||
if(stream) free_stream(stream); // kill cache thread
|
||||
|
||||
return interrupted;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user