summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-19 13:28:45 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-19 13:28:45 +0000
commit27382f151d4c9c1ec6f7c1f7f7226b7976f93e54 (patch)
tree689119e5abf107e93fd7705fc0be7d9aa8cae4c4 /input
parent65a1fea3159d6302941e5033ad78d95906555620 (diff)
downloadmpv-27382f151d4c9c1ec6f7c1f7f7226b7976f93e54.tar.bz2
mpv-27382f151d4c9c1ec6f7c1f7f7226b7976f93e54.tar.xz
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
Diffstat (limited to 'input')
-rw-r--r--input/lirc.c8
1 files changed, 4 insertions, 4 deletions
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));
}