Commit f3ea7239 authored by Tobias Güntner's avatar Tobias Güntner Committed by Rémi Denis-Courmont

Fix assertions

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent b00b016b
......@@ -215,7 +215,7 @@ void vlm_Delete( vlm_t *p_vlm )
assert( p_vlm->users > 0 );
if( --p_vlm->users == 0 )
{
assert( libvlc_priv(p_vlm->p_libvlc)->p_vlm = p_vlm );
assert( libvlc_priv(p_vlm->p_libvlc)->p_vlm == p_vlm );
libvlc_priv(p_vlm->p_libvlc)->p_vlm = NULL;
}
else
......
......@@ -324,11 +324,11 @@ static void test_change( libvlc_int_t *p_libvlc )
/* Test everything is right */
var_Change( p_libvlc, "bla", VLC_VAR_GETMIN, &val, NULL );
assert( val.i_int = i_min );
assert( val.i_int == i_min );
var_Change( p_libvlc, "bla", VLC_VAR_GETMAX, &val, NULL );
assert( val.i_int = i_max );
assert( val.i_int == i_max );
var_Change( p_libvlc, "bla", VLC_VAR_GETSTEP, &val, NULL );
assert( val.i_int = i_step );
assert( val.i_int == i_step );
var_Destroy( p_libvlc, "bla" );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment