vlc_object_t *p_object = vlc_object_find( p_intf,
VLC_OBJECT_AOUT, FIND_ANYWHERE );
aout_instance_t *p_aout = (aout_instance_t *)p_object;
- if( p_object == NULL )
- p_object = vlc_object_find( p_intf,
- VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( p_object == NULL )
- return;
+ if( !p_object )
+ {
+ p_object = (vlc_object_t *)pl_Hold( p_intf );
+ }
psz_string = var_GetNonEmptyString( p_object, "audio-filter" );
}
else
{
+ vlc_object_release( p_object );
return;
}
}
}
else
{
- free( psz_string );
- return;
+ free( psz_string );
+ vlc_object_release( p_object );
+ return;
}
}
{
/* save changed to config */
config_PutPsz( p_object, "audio-filter", psz_string );
-
- /* save to vlcrc */
- config_SaveConfigFile( p_object, "main" );
}
free( psz_string );
vlc_object_t *p_object = vlc_object_find( p_intf,
VLC_OBJECT_AOUT, FIND_ANYWHERE );
if( p_object == NULL )
- p_object = vlc_object_find( p_intf,
- VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( p_object == NULL )
- return false;
+ p_object = (vlc_object_t *)pl_Hold( p_intf );
if( (BOOL)config_GetInt( p_intf, "macosx-eq-keep" ) == YES )
psz_string = config_GetPsz( p_intf, "audio-filter" );
{
int i;
[o_btn_equalizer setToolTip: _NS("Equalizer")];
+ [o_btn_equalizer_embedded setToolTip: _NS("Equalizer")];
[o_ckb_2pass setTitle: _NS("2 Pass")];
[o_ckb_2pass setToolTip: _NS("Apply the "
"equalizer filter twice. The effect will be sharper.")];
VLC_OBJECT_AOUT, FIND_ANYWHERE );
if( p_object == NULL )
- p_object = vlc_object_find( p_intf,
- VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( p_object == NULL )
- return;
+ p_object = (vlc_object_t *)pl_Hold( p_intf );
var_Create( p_object, "equalizer-preamp", VLC_VAR_FLOAT |
VLC_VAR_DOINHERIT );
for( i = 0; i < 10; i++ )
{
/* Read dB -20/20 */
-#ifdef HAVE_STRTOF
f_band[i] = strtof( psz_bands, &p_next );
-#else
- f_band[i] = (float)strtod( psz_bands, &p_next );
-#endif
if( !p_next || p_next == psz_bands ) break; /* strtof() failed */
if( !*psz_bands ) break; /* end of line */
VLC_OBJECT_AOUT, FIND_ANYWHERE );
if( p_object == NULL )
- p_object = vlc_object_find( p_intf,
- VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( p_object == NULL )
- return;
+ p_object = (vlc_object_t *)pl_Hold( p_intf );
char psz_values[102];
memset( psz_values, 0, 102 );
vlc_object_t *p_object= vlc_object_find( p_intf,
VLC_OBJECT_AOUT, FIND_ANYWHERE );
if( p_object == NULL )
- p_object = vlc_object_find( p_intf,
- VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( p_object == NULL )
- return;
+ p_object = (vlc_object_t *)pl_Hold( p_intf );
char psz_values[102];
memset( psz_values, 0, 102 );
vlc_object_t *p_object = vlc_object_find( p_intf,
VLC_OBJECT_AOUT, FIND_ANYWHERE );
if( p_object == NULL )
- p_object = vlc_object_find( p_intf,
- VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( p_object == NULL )
- return;
+ p_object = (vlc_object_t *)pl_Hold( p_intf );
var_SetFloat( p_object, "equalizer-preamp", f_preamp );
{
[o_window orderOut:sender];
[o_btn_equalizer setState:NSOffState];
+ [o_btn_equalizer_embedded setState:NSOffState];
}
else
{
[o_window makeKeyAndOrderFront:sender];
[o_btn_equalizer setState:NSOnState];
+ [o_btn_equalizer_embedded setState:NSOnState];
}
}
VLC_OBJECT_AOUT, FIND_ANYWHERE );
aout_instance_t *p_aout = (aout_instance_t *)p_object;
if( p_object == NULL )
- p_object = vlc_object_find( p_intf,
- VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( p_object == NULL )
- return;
+ p_object = (vlc_object_t *)pl_Hold( p_intf );
var_SetBool( p_object, "equalizer-2pass", b_2p );
if( ( [o_ckb_enable state] ) && ( p_aout != NULL ) )
vlc_object_t *p_object= vlc_object_find( VLCIntf,
VLC_OBJECT_AOUT, FIND_ANYWHERE );
if( p_object == NULL )
- p_object = vlc_object_find( VLCIntf,
- VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+ p_object = (vlc_object_t *)pl_Hold( VLCIntf );
[o_window setExcludedFromWindowsMenu: TRUE];
}
-- (id)getSliderByIndex:(int)index
+- (id)sliderByIndex:(int)index
{
switch(index)
{
- (void)setValue:(float)value forSlider:(int)index
{
- id slider = [self getSliderByIndex:index];
+ id slider = [self sliderByIndex:index];
if (slider != nil)
{