[vlc-devel] commit: variables: assert if the callback is not found. ( Rémi Duraffort )

git version control git at videolan.org
Mon Aug 31 10:33:06 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Aug 31 10:32:01 2009 +0200| [0eb05e54f05a1a1d358a06cd4b49be403ccb1f61] | committer: Rémi Duraffort 

variables: assert if the callback is not found.

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

 src/misc/variables.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/misc/variables.c b/src/misc/variables.c
index 964f11d..1134326 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -978,11 +978,9 @@ int __var_DelCallback( vlc_object_t *p_this, const char *psz_name,
     {
 #ifndef NDEBUG
         if( b_found_similar )
-            msg_Warn( p_this, "Calling var_DelCallback for '%s' with the same "
-                              "function but not the same data.", psz_name );
-        else
-            msg_Warn( p_this, "var_DelCallback can't find the callback for "
-                              "'%s'", psz_name );
+            fprintf( stderr, "Calling var_DelCallback for '%s' with the same "
+                             "function but not the same data.", psz_name );
+        assert( 0 );
 #endif
         vlc_mutex_unlock( &p_priv->var_lock );
         return VLC_EGENERIC;




More information about the vlc-devel mailing list