debugging fixes
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 9 Jul 2004 13:33:20 +0000 (13:33 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 9 Jul 2004 13:33:20 +0000 (13:33 +0000)
Original commit message from CVS:
debugging fixes

gst/gstbin.c
gst/gstelement.c

index 3ae14d4..27bbebc 100644 (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);
index 6dd45cb..63108ab 100644 (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);