[MPlayer-dev-eng] [PATCH] ao_plugin to mp_msg/help_mp

Reynaldo H. Verdejo Pinochet reynaldo at opendot.cl
Sat Sep 25 23:47:23 CEST 2004


Hi all

this one is a leftover from previous libao2/unmantained
to mp_msg/help_mp, they are all fixed now.

Regards

  Reynaldo
-------------- next part --------------
--- ./libao2/ao_plugin.c	2004-09-25 17:19:30.000000000 -0400
+++ ../my_main/libao2/ao_plugin.c	2004-09-25 17:41:49.000000000 -0400
@@ -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 
--- ./help/help_mp-en.h	2004-09-25 17:19:17.000000000 -0400
+++ ../my_main/help/help_mp-en.h	2004-09-25 17:27:57.000000000 -0400
@@ -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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040925/d554ce82/attachment.pgp>


More information about the MPlayer-dev-eng mailing list