[vlc-commits] vlc_codec: show leading zeros in GUID_FMT

Francois Cartegnie git at videolan.org
Tue Jan 31 13:54:50 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan 31 13:53:09 2017 +0100| [c12d9fb6a723867ea7b74cd9e5cb365aae23932c] | committer: Francois Cartegnie

vlc_codec: show leading zeros in GUID_FMT

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c12d9fb6a723867ea7b74cd9e5cb365aae23932c
---

 include/vlc_codecs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_codecs.h b/include/vlc_codecs.h
index 270da78..4a7da4f 100644
--- a/include/vlc_codecs.h
+++ b/include/vlc_codecs.h
@@ -476,7 +476,7 @@ static inline int guidcmp( const GUID *s1, const GUID *s2 )
     return( s1->Data1 == s2->Data1 && guidcmpbase( s1, s2 ) );
 }
 
-#define GUID_FMT "0x%x-0x%x-0x%x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
+#define GUID_FMT "0x%8.8x-0x%4.4x-0x%4.4x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
 #define GUID_PRINT( guid )  \
     (unsigned)(guid).Data1,              \
     (guid).Data2,              \



More information about the vlc-commits mailing list