X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Faudio_output%2Fintf.c;h=b598ea4f69298c51a28ccc9e5febeee3b53524c3;hb=76922217d4efe2fdf12e7bfcca5172b21a78ec70;hp=850a5fce76e3ac983b4a19b2ee08e852ba6400f4;hpb=e27abe75a1d2017799af345709d0db0bcb172a36;p=vlc diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c index 850a5fce76..b598ea4f69 100644 --- a/src/audio_output/intf.c +++ b/src/audio_output/intf.c @@ -1,8 +1,8 @@ /***************************************************************************** * intf.c : audio output API towards the interface modules ***************************************************************************** - * Copyright (C) 2002 VideoLAN - * $Id: intf.c,v 1.17 2003/02/12 14:22:23 hartman Exp $ + * Copyright (C) 2002-2004 VideoLAN + * $Id: intf.c,v 1.20 2004/01/06 12:02:05 zorglub Exp $ * * Authors: Christophe Massiot * @@ -74,6 +74,7 @@ int __aout_VolumeGet( vlc_object_t * p_object, audio_volume_t * pi_volume ) *****************************************************************************/ int __aout_VolumeSet( vlc_object_t * p_object, audio_volume_t i_volume ) { + vlc_value_t val; aout_instance_t * p_aout = vlc_object_find( p_object, VLC_OBJECT_AOUT, FIND_ANYWHERE ); int i_result = 0; @@ -90,6 +91,9 @@ int __aout_VolumeSet( vlc_object_t * p_object, audio_volume_t i_volume ) vlc_mutex_unlock( &p_aout->mixer_lock ); vlc_object_release( p_aout ); + + val.b_bool = VLC_TRUE; + var_Set( p_aout, "intf-change", val ); return i_result; } @@ -385,12 +389,13 @@ int aout_Restart( aout_instance_t * p_aout ) * that when those are changed, it is a significant change which implies * rebuilding the audio-device and audio-channels variables. *****************************************************************************/ -void aout_FindAndRestart( vlc_object_t * p_this ) +int aout_FindAndRestart( vlc_object_t * p_this, const char *psz_name, + vlc_value_t oldval, vlc_value_t val, void *p_data ) { aout_instance_t * p_aout = vlc_object_find( p_this, VLC_OBJECT_AOUT, FIND_ANYWHERE ); - if ( p_aout == NULL ) return; + if ( p_aout == NULL ) return VLC_SUCCESS; if ( var_Type( p_aout, "audio-device" ) != 0 ) { @@ -403,6 +408,8 @@ void aout_FindAndRestart( vlc_object_t * p_this ) aout_Restart( p_aout ); vlc_object_release( p_aout ); + + return VLC_SUCCESS; } /*****************************************************************************