Commit 0eb05e54 authored by Rémi Duraffort's avatar Rémi Duraffort

variables: assert if the callback is not found.

parent bfb26c0e
...@@ -978,11 +978,9 @@ int __var_DelCallback( vlc_object_t *p_this, const char *psz_name, ...@@ -978,11 +978,9 @@ int __var_DelCallback( vlc_object_t *p_this, const char *psz_name,
{ {
#ifndef NDEBUG #ifndef NDEBUG
if( b_found_similar ) if( b_found_similar )
msg_Warn( p_this, "Calling var_DelCallback for '%s' with the same " fprintf( stderr, "Calling var_DelCallback for '%s' with the same "
"function but not the same data.", psz_name ); "function but not the same data.", psz_name );
else assert( 0 );
msg_Warn( p_this, "var_DelCallback can't find the callback for "
"'%s'", psz_name );
#endif #endif
vlc_mutex_unlock( &p_priv->var_lock ); vlc_mutex_unlock( &p_priv->var_lock );
return VLC_EGENERIC; return VLC_EGENERIC;
......
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