diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-26 21:35:14 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-26 21:35:14 +0000 |
commit | 2f6b07dba8627ec4c76e1855e78d40ada06f469a (patch) | |
tree | 2a2459c077f12205662b196052840c328088c932 /lirc_mp.c | |
parent | bb02b536652fe698067c191ffe33a0421fe16ff3 (diff) | |
download | mpv-2f6b07dba8627ec4c76e1855e78d40ada06f469a.tar.bz2 mpv-2f6b07dba8627ec4c76e1855e78d40ada06f469a.tar.xz |
all error/warn/info messages moved to help_mp-en.h for translation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1974 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'lirc_mp.c')
-rw-r--r-- | lirc_mp.c | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -37,10 +37,9 @@ void lirc_mp_setup(void){ int lirc_flags; int lirc_sock; - printf("Setting up lirc support...\n"); + mp_msg(MSGT_LIRC,MSGL_INFO,MSGTR_SettingUpLIRC); if((lirc_sock=lirc_init("mplayer_lirc",1))==-1){ - printf("Failed opening lirc support!\n"); - printf("You won't be able to use your remote control\n"); + mp_msg(MSGT_LIRC,MSGL_ERR,MSGTR_LIRCopenfailed MSGTR_LIRCdisabled); return; } @@ -51,21 +50,18 @@ void lirc_mp_setup(void){ fcntl(lirc_sock,F_SETFL,lirc_flags|O_NONBLOCK); }else{ lirc_deinit(); - printf("Something's wrong with the lirc socket: %s\n", - strerror(errno)); - printf("You won't be able to use your remote control\n"); + mp_msg(MSGT_LIRC,MSGL_ERR,MSGTR_LIRCsocketerr MSGTR_LIRCdisabled,strerror(errno)); return; } if(lirc_readconfig( lirc_configfile,&lirc_config,NULL )!=0 ){ - printf("Failed to read config file %s !\n", + mp_msg(MSGT_LIRC,MSGL_ERR,MSGTR_LIRCcfgerr MSGTR_LIRCdisabled, lirc_configfile == NULL ? "~/.lircrc" : lirc_configfile); - printf("You won't be able to use your remote control\n"); lirc_deinit(); return; } - printf("LIRC init was successful.\n"); + mp_msg(MSGT_LIRC,MSGL_V,"LIRC init was successful.\n"); lirc_is_setup = 1; } @@ -73,7 +69,7 @@ void lirc_mp_setup(void){ void lirc_mp_cleanup(void){ if(lirc_is_setup != 0){ - printf("Cleaning up lirc stuff.\n"); + mp_msg(MSGT_LIRC,MSGL_V,"Cleaning up lirc stuff.\n"); lirc_mp_getinput(NULL); lirc_freeconfig(lirc_config); lirc_deinit(); @@ -137,7 +133,7 @@ int lirc_mp_getinput(){ } free(code); if(ret==-1){ - printf("LIRC: lirc_code2char() returned an error!\n"); + mp_msg(MSGT_LIRC,MSGL_V,"LIRC: lirc_code2char() returned an error!\n"); } } } |