[Mplayer-cvslog] CVS: main/input lirc.c,1.3,1.4
Alban Bedel CVS
albeu at mplayer.dev.hu
Tue Mar 19 14:28:48 CET 2002
Update of /cvsroot/mplayer/main/input
In directory mplayer:/var/tmp.root/cvs-serv17028/input
Modified Files:
lirc.c
Log Message:
A bug fix + moved error msg from verbose to error
Index: lirc.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/lirc.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- lirc.c 23 Feb 2002 21:18:40 -0000 1.3
+++ lirc.c 19 Mar 2002 13:28:45 -0000 1.4
@@ -103,11 +103,11 @@
strcpy(buf,cmd);
buf[len-1] = '\n';
while(w < len) {
- int r = write(mp_fd,buf,len-w);
+ int r = write(mp_fd,buf+w,len-w);
if(r < 0) {
if(errno == EINTR)
continue;
- mp_msg(MSGT_LIRC,MSGL_V,"LIRC subprocess can't write in input pipe : %s\n",
+ mp_msg(MSGT_LIRC,MSGL_ERR,"LIRC subprocess can't write in input pipe : %s\n",
strerror(errno));
mp_input_lirc_process_quit(-1);
}
@@ -126,13 +126,13 @@
if(child_pid <= 0)
return;
if( kill(child_pid,SIGQUIT) != 0) {
- mp_msg(MSGT_LIRC,MSGL_V,"LIRC can't kill subprocess %d : %s\n",
+ mp_msg(MSGT_LIRC,MSGL_ERR,"LIRC can't kill subprocess %d : %s\n",
child_pid,strerror(errno));
return;
}
if(waitpid(child_pid,NULL,0) < 0)
- mp_msg(MSGT_LIRC,MSGL_V,"LIRC error while waiting subprocess %d : %s\n",
+ mp_msg(MSGT_LIRC,MSGL_ERR,"LIRC error while waiting subprocess %d : %s\n",
child_pid,strerror(errno));
}
More information about the MPlayer-cvslog
mailing list