pad: Fix printf format when printing hook id
authorSebastian Dröge <sebastian@centricular.com>
Tue, 15 Jan 2019 16:05:31 +0000 (18:05 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Tue, 15 Jan 2019 16:07:04 +0000 (16:07 +0000)
It's a gulong so we have to cast it to a guint64 when using it with
G_GUINT64_FORMAT.

Spotted by Vincent Penvern.

gst/gstpad.c

index ebc184c..d5faaef 100644 (file)
@@ -1373,8 +1373,8 @@ cleanup_hook (GstPad * pad, GHook * hook)
   GstPadProbeType type;
 
   GST_DEBUG_OBJECT (pad,
-      "cleaning up hook %" G_GUINT64_FORMAT " with flags %08x", hook->hook_id,
-      hook->flags);
+      "cleaning up hook %" G_GUINT64_FORMAT " with flags %08x",
+      (guint64) hook->hook_id, hook->flags);
 
   if (!G_HOOK_IS_VALID (hook))
     return;