GstBin: set PENDING_STATE correctly
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 24 Apr 2009 17:36:22 +0000 (19:36 +0200)
committerWim Taymans <wim@metal.(none)>
Fri, 24 Apr 2009 17:36:22 +0000 (19:36 +0200)
Set the pending state correctly when we are going to perform an async
state_continue on the bin.
Fixes #580121

gst/gstbin.c

index 39da827..2be4480 100644 (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);