summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-25 22:18:41 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-25 22:18:41 +0000
commit74699e399285f75d699733d33fe301124b459f5b (patch)
treed2a4c753a259a2bd7c3ff63803edb2e70adf294f
parent6c7e57f43f715541852822b47d280b1e9a2fb005 (diff)
downloadmpv-74699e399285f75d699733d33fe301124b459f5b.tar.bz2
mpv-74699e399285f75d699733d33fe301124b459f5b.tar.xz
printf --> mp_msg conversion in ao_plugin
patch by Reynaldo H. Verdejo Pinochet <reynaldo at opendot dot cl> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13468 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--help/help_mp-en.h3
-rw-r--r--libao2/ao_plugin.c6
2 files changed, 7 insertions, 2 deletions
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 <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 @@ 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