X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/blobdiff_plain/8040464e24174de2fe5051fd9bd7912b95b4cd5c..e1fd500bd67cf3b6136a3f5fb4ce6f6cd698f924:/gst-trick-mode.py?ds=inline 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):