Mercurial > mplayer.hg
changeset 13467:6c5620360391
printf --> mp_msg conversion in ao_plugin
patch by Reynaldo H. Verdejo Pinochet <reynaldo at opendot dot cl>
author | diego |
---|---|
date | Sat, 25 Sep 2004 22:18:41 +0000 |
parents | 73fab1209374 |
children | d9591400424b |
files | help/help_mp-en.h libao2/ao_plugin.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/help/help_mp-en.h Sat Sep 25 21:02:49 2004 +0000 +++ b/help/help_mp-en.h Sat Sep 25 22:18:41 2004 +0000 @@ -900,3 +900,6 @@ #define MSGTR_AO_ALSA5_WriteErrorAfterReset "[AO ALSA5] alsa-play: write error after reset: %s - giving up.\n" #define MSGTR_AO_ALSA5_OutPutError "[AO ALSA5] alsa-play: output error: %s\n" +// ao_plugin.c + +#define MSGTR_AO_PLUGIN_InvalidPlugin "[AO PLUGIN] invalid plugin: %s\n"
--- a/libao2/ao_plugin.c Sat Sep 25 21:02:49 2004 +0000 +++ b/libao2/ao_plugin.c Sat Sep 25 22:18:41 2004 +0000 @@ -4,6 +4,8 @@ #include <stdlib.h> #include <string.h> +#include "mp_msg.h" +#include "help_mp.h" #include "afmt.h" #include "audio_out.h" #include "audio_out_internal.h" @@ -87,7 +89,7 @@ } cnt++; } - printf("[plugin]: Invalid plugin: %s \n",cfg); + mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_PLUGIN_InvalidPlugin,cfg); return 0; } else @@ -104,7 +106,7 @@ } cnt++; } - printf("[plugin]: Invalid plugin: %s \n",cfg); + mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_PLUGIN_InvalidPlugin,cfg); return 0; } else