Commit e62a3d30 authored by Tobias Güntner's avatar Tobias Güntner Committed by Jean-Baptiste Kempf

Fix assertions

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit f3ea7239e16e5642f5bbb275ecafd4ba49da6521)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 466cdbbc
...@@ -215,7 +215,7 @@ void vlm_Delete( vlm_t *p_vlm ) ...@@ -215,7 +215,7 @@ void vlm_Delete( vlm_t *p_vlm )
assert( p_vlm->users > 0 ); assert( p_vlm->users > 0 );
if( --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; libvlc_priv(p_vlm->p_libvlc)->p_vlm = NULL;
} }
else else
......
...@@ -324,11 +324,11 @@ static void test_change( libvlc_int_t *p_libvlc ) ...@@ -324,11 +324,11 @@ static void test_change( libvlc_int_t *p_libvlc )
/* Test everything is right */ /* Test everything is right */
var_Change( p_libvlc, "bla", VLC_VAR_GETMIN, &val, NULL ); 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 ); 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 ); 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" ); 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