debugging fixes

Original commit message from CVS:
debugging fixes
This commit is contained in:
Thomas Vander Stichele 2004-07-09 13:33:20 +00:00
parent b645d7ab8c
commit 16ff395986
2 changed files with 7 additions and 4 deletions

View file

@ -665,11 +665,14 @@ static void
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;
while (oldstate >>= 1)
old = oldstate;
new = newstate;
while (old >>= 1)
old_idx++;
while (newstate >>= 1)
while (new >>= 1)
new_idx++;
GST_LOCK (bin);

View file

@ -2918,9 +2918,9 @@ gst_element_pads_activate (GstElement * element, gboolean active)
static GstElementStateReturn
gst_element_change_state (GstElement * element)
{
GstElementState old_state;
GstElementState old_state, old_pending;
GstObject *parent;
gint old_pending, old_transition;
gint old_transition;
g_return_val_if_fail (GST_IS_ELEMENT (element), GST_STATE_FAILURE);