[vlc-commits] commit: Allow scaletempo to be toggled without restarting VLC ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Thu Jul 22 18:36:50 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 22 19:25:34 2010 +0300| [726e4ea7f61c9a54675f879ca450d7753f6d848c] | committer: Rémi Denis-Courmont 

Allow scaletempo to be toggled without restarting VLC

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

 src/audio_output/input.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/src/audio_output/input.c b/src/audio_output/input.c
index f0ab216..d041d68 100644
--- a/src/audio_output/input.c
+++ b/src/audio_output/input.c
@@ -223,15 +223,10 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
         var_Create( p_aout, "audio-replay-gain-peak-protection",
                     VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
     }
-    if( var_Type( p_aout, "audio-time-stretch" ) == 0 )
-    {
-        var_Create( p_aout, "audio-time-stretch",
-                    VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
-    }
 
     psz_filters = var_GetString( p_aout, "audio-filter" );
     psz_visual = var_GetString( p_aout, "audio-visual");
-    psz_scaletempo = var_GetBool( p_aout, "audio-time-stretch" ) ? strdup( "scaletempo" ) : NULL;
+    psz_scaletempo = var_InheritBool( p_aout, "audio-time-stretch" ) ? strdup( "scaletempo" ) : NULL;
 
     p_input->b_recycle_vout = psz_visual && *psz_visual;
 



More information about the vlc-commits mailing list