projects
/
experiments
/
gstreamer.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename class callbacks to avoid ambiguities with possible class members
[experiments/gstreamer.git]
/
python
/
gst-playbin-switch.py
diff --git
a/python/gst-playbin-switch.py
b/python/gst-playbin-switch.py
index
5333f53
..
85be7f2
100755
(executable)
--- a/
python/gst-playbin-switch.py
+++ b/
python/gst-playbin-switch.py
@@
-58,7
+58,7
@@
class Player:
self.pipeline.set_state(Gst.State.NULL)
self.loop.quit()
self.pipeline.set_state(Gst.State.NULL)
self.loop.quit()
- def switch(self):
+ def
on_
switch(self):
self.uri_index ^= 1
print("Next: %s" % self.uris[self.uri_index])
self.uri_index ^= 1
print("Next: %s" % self.uris[self.uri_index])
@@
-94,7
+94,7
@@
def main():
def stdin_cb(source, condition):
source.readline()
def stdin_cb(source, condition):
source.readline()
- player.switch()
+ player.
on_
switch()
return True
GObject.io_add_watch(sys.stdin, GObject.IO_IN, stdin_cb)
return True
GObject.io_add_watch(sys.stdin, GObject.IO_IN, stdin_cb)