[vlc-commits] aout: save filter settings in the parent object

Thomas Guillem git at videolan.org
Wed May 31 17:44:54 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue May 30 18:25:47 2017 +0200| [ad2e2b211f509bc9838e66a29dd116f635208214] | committer: Thomas Guillem

aout: save filter settings in the parent object

For now, the parent object is always the playlist.

Ref #6873

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad2e2b211f509bc9838e66a29dd116f635208214
---

 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;



More information about the vlc-commits mailing list