[vlc-commits] dmo: fix format string
Rémi Denis-Courmont
git at videolan.org
Mon Mar 16 18:30:44 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 16 19:00:53 2015 +0200| [86e1aff37be6513b25267fc2d552ecacd8df76f7] | committer: Rémi Denis-Courmont
dmo: fix format string
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86e1aff37be6513b25267fc2d552ecacd8df76f7
---
modules/codec/dmo/dmo.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/codec/dmo/dmo.c b/modules/codec/dmo/dmo.c
index 6910e9e..2b92d78 100644
--- a/modules/codec/dmo/dmo.c
+++ b/modules/codec/dmo/dmo.c
@@ -46,6 +46,12 @@
# 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;
}
More information about the vlc-commits
mailing list