#include <vlc_common.h>
#include <vlc_dialog.h>
+#include <vlc_modules.h>
#include <vlc_aout.h>
#include <vlc_filter.h>
p_filter->p_module = module_need( p_filter, "audio filter", NULL, false );
if ( p_filter->p_module == NULL )
{
- vlc_object_detach( p_filter );
vlc_object_release( p_filter );
return NULL;
}
static void ReleaseFilter( filter_t * p_filter )
{
module_unneed( p_filter, p_filter->p_module );
- vlc_object_detach( p_filter );
vlc_object_release( p_filter );
}
if ( !i_nb_conversions )
{
/* There was only one conversion to do, and we already failed. */
- msg_Err( p_aout, "couldn't find a filter for the conversion" );
+ msg_Err( p_aout, "couldn't find a filter for the conversion "
+ "%4.4s -> %4.4s",
+ &p_input_format->i_format, &p_output_format->i_format );
return -1;
}
module_unneed( p_filter, p_filter->p_module );
free( p_filter->p_owner );
- vlc_object_detach( p_filter );
vlc_object_release( p_filter );
}
}