winks: fix debug message parameter format
authorTim-Philipp Müller <tim@centricular.com>
Sat, 11 Apr 2015 11:12:57 +0000 (12:12 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 11 Apr 2015 11:12:57 +0000 (12:12 +0100)
The first part of the GUID structure is a DWORD
which is defined as an unsigned long, so we need
to either cast or use %08lx.

sys/winks/ksvideohelpers.c

index 156d5c8..9d70461 100644 (file)
@@ -182,7 +182,7 @@ ks_video_format_to_structure (GUID subtype_guid, GUID format_guid)
   if (!structure) {
     GST_DEBUG ("Unknown DirectShow Video GUID "
         "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
-        subtype_guid.Data1, subtype_guid.Data2, subtype_guid.Data3,
+        (guint) subtype_guid.Data1, subtype_guid.Data2, subtype_guid.Data3,
         subtype_guid.Data4[0], subtype_guid.Data4[1], subtype_guid.Data4[2],
         subtype_guid.Data4[3], subtype_guid.Data4[4], subtype_guid.Data4[5],
         subtype_guid.Data4[6], subtype_guid.Data4[7]);