Author: remi
Date: 2009-06-09 14:24:30 +0200 (Tue, 09 Jun 2009)
New Revision: 4758

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/util/player/mplayer/Mplayer.py
Log:
* improved mplayer wrapper stability
* removed useless callback

Modified: 
software_suite_v3/smart-core/smart-server/trunk/util/player/mplayer/Mplayer.py
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/util/player/mplayer/Mplayer.py  
    2009-06-09 12:23:32 UTC (rev 4757)
+++ 
software_suite_v3/smart-core/smart-server/trunk/util/player/mplayer/Mplayer.py  
    2009-06-09 12:24:30 UTC (rev 4758)
@@ -146,7 +146,7 @@
             "-slave",
             "-ao",
             self.__device,
-            "-nocache",
+            #"-nocache",
             "-playlist",
             uri,
         ]
@@ -165,11 +165,12 @@
             except:
                 buffer = ""
             if len(buffer) == 0:
+                pass
                 # No data from mplayer indicates that the program is closed.
                 # Then stop the module.
-                if self.onStreamLoosedCallback != None:
-                    self.onStreamLoosedCallback()
-                self.stop()
+                #if self.onStreamLoosedCallback != None:
+                #    self.onStreamLoosedCallback()
+                #self.stop()
             else:
                 buffer = buffer.replace("\r", "\n")
                 buffer = incompleteLine + buffer
@@ -199,7 +200,7 @@
     # 
--------------------------------------------------------------------------
     # Send a command to mplayer.
     # 
--------------------------------------------------------------------------
-    def __sendCommand(self, command):
+    def sendCommand(self, command):
         """Send a command to mplayer.
         """
         if self.__process != None:


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to