]> git.sesse.net Git - vlc/commitdiff
dmo: fix format string
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Mar 2015 17:00:53 +0000 (19:00 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Mar 2015 17:00:53 +0000 (19:00 +0200)
modules/codec/dmo/dmo.c

index 6910e9e07a6797b378e6a7cf005a3adc9d1d6f75..2b92d7828530786aa47dfdd2757686b1e9aed32b 100644 (file)
 # define DMO_DEBUG 1
 #endif
 
+#ifdef UNICODE
+# define PRIs "%ls"
+#else
+# define PRIs "%s"
+#endif
+
 typedef long (STDCALL *GETCLASS) ( const GUID*, const GUID*, void** );
 
 static const int pi_channels_maps[7] =
@@ -249,7 +255,7 @@ static int DecoderOpen( vlc_object_t *p_this )
     {
         if( decoders_table[i].i_fourcc == p_dec->fmt_in.i_codec )
         {
-            msg_Dbg( p_dec, "DMO codec for %4.4s may work with dll=%s",
+            msg_Dbg( p_dec, "DMO codec for %4.4s may work with dll="PRIs,
                      (char*)&p_dec->fmt_in.i_codec,
                      decoders_table[i].psz_dll );
             goto found;
@@ -765,7 +771,7 @@ loader:
     *p_hmsdmo_dll = LoadLibrary( codecs_table[i_codec].psz_dll );
     if( *p_hmsdmo_dll == NULL )
     {
-        msg_Dbg( p_this, "failed loading '%s'",
+        msg_Dbg( p_this, "failed loading '"PRIs"'",
                  codecs_table[i_codec].psz_dll );
         return VLC_EGENERIC;
     }