[vlc-devel] [PATCHv2 02/18] aout: save filter settings in the parent object

Thomas Guillem thomas at gllm.fr
Tue May 30 18:40:52 CEST 2017


For now, the parent object is always the playlist.

Ref #6873
---
 src/audio_output/common.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index 0d1761c50a..66bf5b3849 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -564,8 +564,7 @@ bool aout_ChangeFilterString( vlc_object_t *p_obj, vlc_object_t *p_aout,
     }
     else
     {
-        psz_list = var_CreateGetString( p_obj->obj.libvlc, psz_variable );
-        var_Destroy( p_obj->obj.libvlc, psz_variable );
+        psz_list = var_InheritString( p_obj, psz_variable );
     }
 
     /* Split the string into an array of filters */
@@ -650,10 +649,9 @@ bool aout_ChangeFilterString( vlc_object_t *p_obj, vlc_object_t *p_aout,
     free( ppsz_filter );
     free( psz_list );
 
+    var_SetString( p_obj, psz_variable, psz_new );
     if( p_aout )
         var_SetString( p_aout, psz_variable, psz_new );
-    else
-        config_PutPsz( p_obj, psz_variable, psz_new );
     free( psz_new );
 
     return true;
-- 
2.11.0



More information about the vlc-devel mailing list