GNOME Bugzilla – Bug 420133
gst_element_sync_state_with_parent should look at pending state too
Last modified: 2007-03-20 09:45:52 UTC
I'm attaching a very simple patch that makes gst_element_sync_with_parent sync with the pending state of the parent if its not NULL_PENDING.
Created attachment 84878 [details] [review] sync with pending state if any Also, this patch is racy (since the state can change between unlocking the object here and relocking it set_state, but it seems there is nothing we can do without recursive locks).
Patch by: Olivier Crete <tester at tester dot ca> * gst/gstelement.c: (gst_element_sync_state_with_parent): Look at the pending state too when syncing the element state to the parent. Fixes #420133.