wasapi: Squelch warning about %x and HRESULT
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 4 Apr 2018 13:02:19 +0000 (18:32 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Wed, 4 Apr 2018 13:06:38 +0000 (18:36 +0530)
HRESULT is always a 32-bit value, as is guint.

sys/wasapi/gstwasapiutil.h

index a0e329d..ecf0ba3 100644 (file)
@@ -45,7 +45,7 @@
   do { \
     if (hr != S_OK) { \
       gchar *msg = gst_wasapi_util_hresult_to_string (hr); \
-      GST_ERROR_OBJECT (self, #func " failed (%x): %s", hr, msg); \
+      GST_ERROR_OBJECT (self, #func " failed (%x): %s", (guint) hr, msg); \
       g_free (msg); \
       and; \
     } \