From 27382f151d4c9c1ec6f7c1f7f7226b7976f93e54 Mon Sep 17 00:00:00 2001 From: albeu Date: Tue, 19 Mar 2002 13:28:45 +0000 Subject: A bug fix + moved error msg from verbose to error git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5197 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/lirc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'input/lirc.c') diff --git a/input/lirc.c b/input/lirc.c index b9053c9343..1b1bd66b1f 100644 --- a/input/lirc.c +++ b/input/lirc.c @@ -103,11 +103,11 @@ mp_input_lirc_process(int mp_fd) { 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 @@ mp_input_lirc_uninit(void) { 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)); } -- cgit v1.2.3