[vlc-devel] commit: aout_FindAndRestart() needs the playlist ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Feb 14 10:58:25 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 14 11:27:23 2010 +0200| [1e2fab2976a42ad05b377cefc933710ecc0469a8] | committer: Rémi Denis-Courmont 

aout_FindAndRestart() needs the playlist

This will probably never work for LibVLC.

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

 src/audio_output/intf.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c
index 44cc169..03da3e6 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;




More information about the vlc-devel mailing list