Mercurial > mplayer.hg
changeset 6463:5deb9a35214f
10L forgot to close input.conf fd
author | albeu |
---|---|
date | Wed, 19 Jun 2002 16:41:38 +0000 |
parents | dc033b197434 |
children | 60211818e5b9 |
files | input/input.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/input/input.c Wed Jun 19 01:44:19 2002 +0000 +++ b/input/input.c Wed Jun 19 16:41:38 2002 +0000 @@ -1108,6 +1108,7 @@ continue; mp_msg(MSGT_INPUT,MSGL_ERR,"Error while reading input config file %s : %s\n",file,strerror(errno)); mp_input_free_binds(binds); + close(fd); return 0; } else if(r == 0) eof = 1; @@ -1121,6 +1122,7 @@ mp_msg(MSGT_INPUT,MSGL_INFO,"Input config file %s parsed : %d binds\n",file,n_binds); if(binds) cmd_binds = binds; + close(fd); return 1; } @@ -1179,6 +1181,7 @@ if(! mp_input_get_input_from_name(name,keys)) { mp_msg(MSGT_INPUT,MSGL_ERR,"Unknown key '%s'\n",name); mp_input_free_binds(binds); + close(fd); return 0; } } @@ -1208,6 +1211,7 @@ if(iter == buffer) { mp_msg(MSGT_INPUT,MSGL_ERR,"Buffer is too small for command %s\n",buffer); mp_input_free_binds(binds); + close(fd); return 0; } memmove(buffer,iter,end - iter); @@ -1232,6 +1236,7 @@ } } mp_msg(MSGT_INPUT,MSGL_ERR,"What are we doing here ?\n"); + close(fd); return 0; }