GstBin: set PENDING_STATE correctly

Set the pending state correctly when we are going to perform an async
state_continue on the bin.
Fixes #580121
This commit is contained in:
Wim Taymans 2009-04-24 19:36:22 +02:00 committed by Wim Taymans
parent 2633d77126
commit 81cadeecd2

View file

@ -2523,6 +2523,7 @@ gst_bin_continue_func (BinContinueData * data)
transition = (GstStateChange) GST_STATE_TRANSITION (current, next);
GST_STATE_NEXT (bin) = next;
GST_STATE_PENDING (bin) = pending;
/* mark busy */
GST_STATE_RETURN (bin) = GST_STATE_CHANGE_ASYNC;
GST_OBJECT_UNLOCK (bin);