gst/gstbin.c: Correctly set the next state if all of our async children commited their state. This makes sure we can ...

Original commit message from CVS:
* gst/gstbin.c: (bin_handle_async_done):
Correctly set the next state if all of our async children commited their
state. This makes sure we can actually cancel the state change in
progress. Fixes a regression in Rhythmbox when seeking.
This commit is contained in:
Wim Taymans 2007-10-14 15:54:02 +00:00
parent 65637313b0
commit 00e832a463
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2007-10-14 Wim Taymans <wim.taymans@gmail.com>
* gst/gstbin.c: (bin_handle_async_done):
Correctly set the next state if all of our async children commited their
state. This makes sure we can actually cancel the state change in
progress. Fixes a regression in Rhythmbox when seeking.
2007-10-13 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstbin.c:

View file

@ -2583,6 +2583,7 @@ bin_handle_async_done (GstBin * bin, GstStateChangeReturn ret)
cont->pending = pending;
/* mark busy */
GST_STATE_RETURN (bin) = GST_STATE_CHANGE_ASYNC;
GST_STATE_NEXT (bin) = pending;
}
if (old_next != GST_STATE_PLAYING) {