X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/blobdiff_plain/8040464e24174de2fe5051fd9bd7912b95b4cd5c..b1acbe4b4c61ee46354142b01c2bfa67dc5985d9:/gst-trick-mode.py diff --git a/gst-trick-mode.py b/gst-trick-mode.py index d741b59..a4e063f 100755 --- a/gst-trick-mode.py +++ b/gst-trick-mode.py @@ -35,7 +35,7 @@ class Player: print 'on_state_changed' old_state, new_state, pending = msg.parse_state_changed() print "%s -> %s" % (old_state, new_state) - if new_state == gst.STATE_PAUSED: + if old_state == gst.STATE_READY and new_state == gst.STATE_PAUSED: self.set_rate(self._rate) def set_rate(self, rate):