[vlc-commits] Fix assertions

Tobias Güntner git at videolan.org
Tue Dec 20 00:23:47 CET 2011


vlc/vlc-1.2 | branch: master | Tobias Güntner <fatbull at web.de> | Mon Dec 19 15:36:04 2011 +0100| [e62a3d3089b3f1bc656883ea553f16729574ccb9] | committer: Jean-Baptiste Kempf

Fix assertions

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit f3ea7239e16e5642f5bbb275ecafd4ba49da6521)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=e62a3d3089b3f1bc656883ea553f16729574ccb9
---

 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