examples/pipeline-tester: New API: STATE_SUCCESS -> STATE_CHANGE_SUCCESS

Original commit message from CVS:
* examples/pipeline-tester: (Window.play):
New API: STATE_SUCCESS -> STATE_CHANGE_SUCCESS
This commit is contained in:
Edward Hervey 2005-09-05 14:20:06 +00:00
parent 9ddd53563d
commit 934c77178d
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-09-05 Edward Hervey <edward@fluendo.com>
* examples/pipeline-tester: (Window.play):
New API: STATE_SUCCESS -> STATE_CHANGE_SUCCESS
2005-09-03 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gst.defs:

2
common

@ -1 +1 @@
Subproject commit ddbcaa275c5f41f19d5665f0c52de1f9edcb4689
Subproject commit 54886902497be267fe1f1a3f9c4dc0245bc46175

View file

@ -224,7 +224,7 @@ class Window(gtk.Window):
self.error('Could not create pipeline', str(e))
return False
watch_id = pipeline.get_bus().add_watch(self.on_message)
if pipeline.set_state(gst.STATE_PLAYING) != gst.STATE_SUCCESS:
if pipeline.set_state(gst.STATE_PLAYING) != gst.STATE_CHANGE_SUCCESS:
# make sure we get error messages
while gtk.events_pending():
gtk.main_iteration()