From: Thomas Vander Stichele Date: Fri, 9 Jul 2004 13:33:20 +0000 (+0000) Subject: debugging fixes X-Git-Tag: RELEASE-0_8_4~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16ff395986faff385548f4a8ab8e5ba2ea9025f3;p=platform%2Fupstream%2Fgstreamer.git debugging fixes Original commit message from CVS: debugging fixes --- diff --git a/gst/gstbin.c b/gst/gstbin.c index 3ae14d48c8..27bbebcab5 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -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); diff --git a/gst/gstelement.c b/gst/gstelement.c index 6dd45cb4fc..63108ab2d5 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -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);