]> git.sesse.net Git - vlc/commitdiff
JACK output: use var_Inherit
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 30 Dec 2009 18:31:48 +0000 (20:31 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 30 Dec 2009 18:39:38 +0000 (20:39 +0200)
modules/audio_output/jack.c

index 63c750473777ed82d1ba92ca23ab6ffef06ea261..8e57baff3c29b4826aee27b0753bd27d498309d8 100644 (file)
@@ -186,10 +186,10 @@ static int Open( vlc_object_t *p_this )
     }
 
     /* Auto connect ports if we were asked to */
-    if( config_GetInt( p_aout, AUTO_CONNECT_OPTION ) )
+    if( var_InheritInteger( p_aout, AUTO_CONNECT_OPTION ) )
     {
         unsigned int i_in_ports;
-        char *psz_regex = config_GetPsz( p_aout, CONNECT_REGEX_OPTION );
+        char *psz_regex = var_InheritString( p_aout, CONNECT_REGEX_OPTION );
         const char **pp_in_ports = jack_get_ports( p_sys->p_jack_client,
                                                    psz_regex, NULL,
                                                    JackPortIsInput );