mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 22:02:59 +00: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:
parent
6c7e57f43f
commit
74699e3992
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user