]> git.sesse.net Git - vlc/commitdiff
variables: assert if the callback is not found.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 31 Aug 2009 08:32:01 +0000 (10:32 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 31 Aug 2009 08:32:01 +0000 (10:32 +0200)
src/misc/variables.c

index 964f11d9686e5a95b5a89193fa4021d1ea891506..1134326984892e023bff96ff6c5c141456bd117d 100644 (file)
@@ -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;