[vlc-commits] qt: get audio filters from the playlist

Thomas Guillem git at videolan.org
Wed May 31 17:45:06 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed May 31 16:38:32 2017 +0200| [3aa43382b7c7677478714c23f7494c8fae9b18ac] | committer: Thomas Guillem

qt: get audio filters from the playlist

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

 modules/gui/qt/components/extended_panels.cpp | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/modules/gui/qt/components/extended_panels.cpp b/modules/gui/qt/components/extended_panels.cpp
index df6ed3b14d..7ce4c4f782 100644
--- a/modules/gui/qt/components/extended_panels.cpp
+++ b/modules/gui/qt/components/extended_panels.cpp
@@ -958,15 +958,7 @@ void AudioFilterControlWidget::build()
         sliderDatas << filter;
     }
 
-    vlc_object_t *p_aout = (vlc_object_t *)THEMIM->getAout();
-    char *psz_af;
-    if( p_aout )
-    {
-        psz_af = var_GetNonEmptyString( p_aout, "audio-filter" );
-        vlc_object_release( p_aout );
-    }
-    else
-        psz_af = config_GetPsz( p_intf, "audio-filter" );
+    char *psz_af = var_InheritString( THEPL, "audio-filter" );
 
     if( psz_af && strstr( psz_af, qtu(name) ) != NULL )
         slidersBox->setChecked( true );
@@ -1201,7 +1193,7 @@ void Equalizer::build()
         vlc_object_release( p_aout );
     }
     else
-        psz_af = config_GetPsz( p_intf, "audio-filter" );
+        psz_af = var_InheritString( THEPL, "audio-filter" );
 
     /* To enable or disable subwidgets */
     /* If that list grows, better iterate over layout's childs */



More information about the vlc-commits mailing list