projects
/
experiments
/
gstreamer.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an example for fdsrc and videoparse
[experiments/gstreamer.git]
/
gst-trick-mode-looping-2.py
diff --git
a/gst-trick-mode-looping-2.py
b/gst-trick-mode-looping-2.py
index
6bbd6e6
..
920677d
100755
(executable)
--- a/
gst-trick-mode-looping-2.py
+++ b/
gst-trick-mode-looping-2.py
@@
-54,7
+54,7
@@
class Player:
print 'on_state_changed'
old_state, new_state, pending = msg.parse_state_changed()
print "%s -> %s" % (old_state, new_state)
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):
self.set_rate(self._rate)
def set_rate(self, rate):