gst/: Fix build with --disable-gst-debug. Fixes #497859.
authorStefan Kost <ensonic@users.sourceforge.net>
Sun, 18 Nov 2007 19:30:10 +0000 (19:30 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Sun, 18 Nov 2007 19:30:10 +0000 (19:30 +0000)
Original commit message from CVS:
* gst/gstbin.c:
* gst/gstdebugutils.c:
Fix build with --disable-gst-debug. Fixes #497859.
Spotted by Sameer Naik.

ChangeLog
gst/gstbin.c
gst/gstdebugutils.c

index a820fea..c224000 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-11-18  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/gstbin.c:
+       * gst/gstdebugutils.c:
+         Fix build with --disable-gst-debug. Fixes #497859.
+         Spotted by Sameer Naik.
+
 2007-11-17  Stefan Kost  <ensonic@users.sf.net>
 
        * gst/gstevent.c:
index ec94eb7..61191d6 100644 (file)
@@ -1531,10 +1531,9 @@ static GstStateChangeReturn
 gst_bin_get_state_func (GstElement * element, GstState * state,
     GstState * pending, GstClockTime timeout)
 {
-  GstBin *bin = GST_BIN (element);
   GstStateChangeReturn ret;
 
-  GST_CAT_INFO_OBJECT (GST_CAT_STATES, bin, "getting state");
+  GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "getting state");
 
   ret = parent_class->get_state (element, state, pending, timeout);
 
index 6b23829..2e2b717 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef GST_DISABLE_GST_DEBUG
-
 #include "gst_private.h"
+#include "gstdebugutils.h"
+
+#ifndef GST_DISABLE_GST_DEBUG
 
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 
 #include "gstinfo.h"
-#include "gstdebugutils.h"
 #include "gstbin.h"
 #include "gstobject.h"
 #include "gstghostpad.h"