From f7489f7c891c9fa3ae992b57d83b499b304a5df6 Mon Sep 17 00:00:00 2001 From: daniel-123 Date: Sun, 13 Jan 2013 22:47:59 +0100 Subject: [PATCH] Changed mplayer2 pausing to documented command. --- syncplay/players/mplayer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncplay/players/mplayer.py b/syncplay/players/mplayer.py index b6dd4f6..53e489d 100644 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -85,8 +85,8 @@ class MplayerPlayer(BasePlayer): self._setProperty('time_pos', "{}".format(value)) def setPaused(self, value): - self._paused = value - self._setProperty('pause', 'yes' if value else 'no') + if self._paused <> value: + self._listener.sendLine('pause') def _getFilename(self): self._getProperty('filename')