Original commit message from CVS:
debugging fixes
gst_bin_child_state_change_func (GstBin * bin, GstElementState oldstate,
GstElementState newstate, GstElement * child)
{
gst_bin_child_state_change_func (GstBin * bin, GstElementState oldstate,
GstElementState newstate, GstElement * child)
{
+ GstElementState old = 0, new = 0;
gint old_idx = 0, new_idx = 0, i;
gint old_idx = 0, new_idx = 0, i;
+ old = oldstate;
+ new = newstate;
+ while (old >>= 1)
new_idx++;
GST_LOCK (bin);
new_idx++;
GST_LOCK (bin);
static GstElementStateReturn
gst_element_change_state (GstElement * element)
{
static GstElementStateReturn
gst_element_change_state (GstElement * element)
{
- GstElementState old_state;
+ GstElementState old_state, old_pending;
- gint old_pending, old_transition;
g_return_val_if_fail (GST_IS_ELEMENT (element), GST_STATE_FAILURE);
g_return_val_if_fail (GST_IS_ELEMENT (element), GST_STATE_FAILURE);