0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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
This commit is contained in:
diego 2004-09-25 22:18:41 +00:00
parent 6c7e57f43f
commit 74699e3992
2 changed files with 7 additions and 2 deletions

View File

@ -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"

View File

@ -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