void playlist_EnableAudioFilter (playlist_t *pl, const char *name, bool add) { audio_output_t *aout = playlist_GetAout (pl); if (aout_ChangeFilterString (VLC_OBJECT(pl), VLC_OBJECT(aout), "audio-filter", name, add)) { if (aout != NULL) aout_InputRequestRestart (aout); } if (aout != NULL) vlc_object_release (aout); }
static int ChangeFiltersString( aout_instance_t * p_aout, const char* psz_variable, const char *psz_name, bool b_add ) { return aout_ChangeFilterString( VLC_OBJECT(p_aout), p_aout, psz_variable, psz_name, b_add ) ? 1 : 0; }