Author: tack
Date: Wed Nov 29 20:59:24 2006
New Revision: 2122

Modified:
   trunk/popcorn/src/backends/xine/child.py

Log:
If ao fails to initialize, wire a dummy ao instead.


Modified: trunk/popcorn/src/backends/xine/child.py
==============================================================================
--- trunk/popcorn/src/backends/xine/child.py    (original)
+++ trunk/popcorn/src/backends/xine/child.py    Wed Nov 29 20:59:24 2006
@@ -191,6 +191,13 @@
             del event.data["data"]
         if event.type == xine.EVENT_UI_CHANNELS_CHANGED:
             self.parent.set_streaminfo(True, self._get_streaminfo())
+        elif event.type == xine.EVENT_UI_MESSAGE and event.data['type'] == 
xine.MSG_AUDIO_OUT_UNAVAILABLE:
+            # Failed to open audio driver (async), so create dummy driver and
+            # wire stream to that.
+            self._ao = self._xine.open_audio_driver("none")
+            if self._stream:
+                self._stream.get_audio_source().wire(self._ao)
+
         self.parent.xine_event(event.type, event.data)
 
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to