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" );
DIR *path;
int i_ret;
bool b_embedded_snapshot;
- uintmax_t i_id = (uintptr_t)NULL;
+ void *p_obj;
/* */
val.psz_string = var_GetNonEmptyString( p_vout, "snapshot-path" );
/* Embedded snapshot : if snapshot-path == object:object_ptr */
- if( val.psz_string && sscanf( val.psz_string, "object:%ju", &i_id ) > 0 )
+ if( val.psz_string && sscanf( val.psz_string, "object:%p", &p_obj ) > 0 )
b_embedded_snapshot = true;
else
b_embedded_snapshot = false;
*/
if( b_embedded_snapshot )
{
- vlc_object_t* p_dest = (vlc_object_t *)(uintptr_t)i_id;
+ vlc_object_t* p_dest = p_obj;
block_t *p_block;
snapshot_t *p_snapshot;
size_t i_size;