diff --git a/help/help_mp-en.h b/help/help_mp-en.h index 452cd06f30..1d28369ee0 100644 --- a/help/help_mp-en.h +++ b/help/help_mp-en.h @@ -900,3 +900,6 @@ static char help_text[]= #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" diff --git a/libao2/ao_plugin.c b/libao2/ao_plugin.c index 6cb2f85c55..e40c737de8 100644 --- a/libao2/ao_plugin.c +++ b/libao2/ao_plugin.c @@ -4,6 +4,8 @@ #include #include +#include "mp_msg.h" +#include "help_mp.h" #include "afmt.h" #include "audio_out.h" #include "audio_out_internal.h" @@ -87,7 +89,7 @@ int add_plugin(int i,char* cfg){ } 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 @@ int add_plugin(int i,char* cfg){ } cnt++; } - printf("[plugin]: Invalid plugin: %s \n",cfg); + mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_PLUGIN_InvalidPlugin,cfg); return 0; } else