[vlc-devel] commit: auhal: do not destroy "audio-device" when AudioHardwarePropertyListener failed, but try to use it anyway. ( Jean-Paul Saman )

git version control git at videolan.org
Fri Jul 24 15:06:24 CEST 2009


vlc | branch: 1.0-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Wed Jul 22 21:52:10 2009 +0200| [4d8907a49ae7e75dd7f92994bab3165823eb8ccf] | committer: Jean-Paul Saman 

auhal: do not destroy "audio-device" when AudioHardwarePropertyListener failed, but try to use it anyway.

It allows multiple Safari webplugins to play audio at the sametime, just as 2 vlc instances would do.
(cherry picked from commit 2df853a4d4ad41a63817da60cc9837374e00f88e)

Signed-off-by: Jean-Paul Saman <jpsaman at videolan.org>

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

 modules/audio_output/auhal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 58b25f0..e82e84f 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1051,7 +1051,7 @@ static void Probe( aout_instance_t * p_aout )
     return;
 
 error:
-    var_Destroy( p_aout, "audio-device" );
+    msg_Warn( p_aout, "audio device already initialized" );
     free( p_devices );
     return;
 }




More information about the vlc-devel mailing list