sccanf supports %p, use it instead of hacky %ju
[vlc.git] / src / control / mediacontrol_audio_video.c
index 6f7028b..f783f51 100644 (file)
@@ -86,7 +86,7 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
         vlc_object_release( p_input );
         RAISE_NULL( mediacontrol_InternalException, "Out of memory" );
     }
-    snprintf( path, 255, "object:%ju", (uintmax_t)(uintptr_t)p_cache );
+    snprintf( path, 255, "object:%p", p_cache );
     var_SetString( p_vout, "snapshot-path", path );
     var_SetString( p_vout, "snapshot-format", "png" );