Исправлена обработка зависания VLC.
[vpproxy.git] / vlcclient / vlcclient.py
index 1fa5e4330d5feb7640febe5c42575956efea45ed..f1e5733d881d76a27d1570291c41243ab58c8555 100644 (file)
@@ -186,6 +186,13 @@ class VlcClient(object):
         self.stopBroadcast(stream)
       self._resultlock.release()
 
+    def check_stream(self,stream_name):
+      if stream_name in self.streams:
+        self.streams[stream_name]=time.time()
+        return True
+      else:
+        return False  
+
     def pauseBroadcast(self, stream_name):
         return self._write(VlcMessage.request.pauseBroadcast(stream_name))