Mplayer prints stderr on exit
Changed behaviour of asking for input at the exit
This commit is contained in:
parent
16d2b5b097
commit
b717b03a73
@ -35,7 +35,7 @@ class SyncClientFactory(ClientFactory):
|
||||
if not self.reconnecting:
|
||||
message = 'Connection failed'
|
||||
self._client.ui.showMessage(message)
|
||||
self._client.stop()
|
||||
self._client.stop(True)
|
||||
else:
|
||||
self.clientConnectionLost(connector, reason)
|
||||
|
||||
@ -279,7 +279,7 @@ class SyncplayClient(object):
|
||||
self._running = True
|
||||
reactor.run()
|
||||
|
||||
def stop(self, promptForAction = True):
|
||||
def stop(self, promptForAction = False):
|
||||
if not self._running:
|
||||
return
|
||||
self._running = False
|
||||
|
||||
@ -129,7 +129,9 @@ class MplayerPlayer(BasePlayer):
|
||||
self._pathAsk.set()
|
||||
self._positionAsk.set()
|
||||
self._pausedAsk.set()
|
||||
self._client.stop()
|
||||
self._client.stop(False)
|
||||
for line in self._listener.readStderrLine():
|
||||
self._client.ui.showMessage(line, True, True)
|
||||
|
||||
class __Listener(threading.Thread):
|
||||
def __init__(self, playerController, playerProcess):
|
||||
@ -150,4 +152,8 @@ class MplayerPlayer(BasePlayer):
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
def readStderrLine(self):
|
||||
for line in self.__process.stderr.readlines():
|
||||
yield line
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user