From 1e2fab2976a42ad05b377cefc933710ecc0469a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 14 Feb 2010 11:27:23 +0200 Subject: [PATCH] aout_FindAndRestart() needs the playlist This will probably never work for LibVLC. --- src/audio_output/intf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c index 44cc169e21..03da3e6b57 100644 --- a/src/audio_output/intf.c +++ b/src/audio_output/intf.c @@ -50,6 +50,7 @@ static aout_instance_t *findAout (vlc_object_t *obj) vlc_object_release (p_input); return p_aout; } +#define findAout(o) findAout(VLC_OBJECT(o)) /* * Volume management @@ -449,7 +450,7 @@ static int aout_Restart( aout_instance_t * p_aout ) int aout_FindAndRestart( vlc_object_t * p_this, const char *psz_name, vlc_value_t oldval, vlc_value_t newval, void *p_data ) { - aout_instance_t * p_aout = findAout( p_this ); + aout_instance_t * p_aout = findAout( pl_Get(p_this) ); (void)psz_name; (void)oldval; (void)newval; (void)p_data; if ( p_aout == NULL ) return VLC_SUCCESS; -- 2.39.2