[vlc-commits] Fix assertions
Tobias Güntner
git at videolan.org
Mon Dec 19 18:30:10 CET 2011
vlc | branch: master | Tobias Güntner <fatbull at web.de> | Mon Dec 19 15:36:04 2011 +0100| [f3ea7239e16e5642f5bbb275ecafd4ba49da6521] | committer: Rémi Denis-Courmont
Fix assertions
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f3ea7239e16e5642f5bbb275ecafd4ba49da6521
---
src/input/vlm.c | 2 +-
test/src/misc/variables.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/input/vlm.c b/src/input/vlm.c
index 2849910..1e7aff7 100644
--- a/src/input/vlm.c
+++ b/src/input/vlm.c
@@ -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
diff --git a/test/src/misc/variables.c b/test/src/misc/variables.c
index e710e1e..d5091f4 100644
--- a/test/src/misc/variables.c
+++ b/test/src/misc/variables.c
@@ -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" );
}
More information about the vlc-commits
mailing list