work with debug disabled
authorThomas Vander Stichele <thomas@apestaart.org>
Sun, 10 Apr 2005 21:42:32 +0000 (21:42 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sun, 10 Apr 2005 21:42:32 +0000 (21:42 +0000)
Original commit message from CVS:
work with debug disabled

gst/gstelement.c

index a72000a..717a7d9 100644 (file)
@@ -1737,7 +1737,9 @@ gst_element_abort_state (GstElement * element)
   pending = GST_STATE_PENDING (element);
 
   if (pending != GST_STATE_VOID_PENDING && !GST_STATE_ERROR (element)) {
+#ifndef GST_DISABLE_GST_DEBUG
     GstElementState old_state = GST_STATE (element);
+#endif
 
     GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
         "aborting state from %s to %s", gst_element_state_get_name (old_state),