1.1 --- a/gmyth-stream/plugins/media/mencoder.py Fri Mar 30 23:07:54 2007 +0100
1.2 +++ b/gmyth-stream/plugins/media/mencoder.py Fri Mar 30 23:12:52 2007 +0100
1.3 @@ -49,7 +49,6 @@
1.4 self.socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
1.5 self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
1.6 self.socket.bind( ('', self.port) )
1.7 - self.socket.settimeout(10)
1.8 self.socket.listen(1)
1.9
1.10 def play(self):
1.11 @@ -66,7 +65,7 @@
1.12 conn,addr= self.socket.accept()
1.13 lib.log("Sending Data to client: %s" % addr[0])
1.14
1.15 - data = fifo.read(4096)
1.16 + data = fifo.read(1024)
1.17 conn.settimeout(5)
1.18 retry = 0
1.19
1.20 @@ -77,7 +76,7 @@
1.21 lib.log("Socket error (maybe timeout ?)")
1.22 retry += 1
1.23
1.24 - data = fifo.read(4096)
1.25 + data = fifo.read(1024)
1.26
1.27 if (retry < 5):
1.28 lib.log("Finished sending Data to client: %s" % addr[0])