From f3d71f7ef520c4fcbdc6007bc41b43516137d501 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sun, 18 Nov 2007 19:30:10 +0000 Subject: [PATCH] gst/: Fix build with --disable-gst-debug. Fixes #497859. Original commit message from CVS: * gst/gstbin.c: * gst/gstdebugutils.c: Fix build with --disable-gst-debug. Fixes #497859. Spotted by Sameer Naik. --- ChangeLog | 7 +++++++ gst/gstbin.c | 3 +-- gst/gstdebugutils.c | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a820fea57a..c224000ffc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-11-18 Stefan Kost + + * gst/gstbin.c: + * gst/gstdebugutils.c: + Fix build with --disable-gst-debug. Fixes #497859. + Spotted by Sameer Naik. + 2007-11-17 Stefan Kost * gst/gstevent.c: diff --git a/gst/gstbin.c b/gst/gstbin.c index ec94eb7d5f..61191d6f9d 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -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); diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index 6b238298ea..2e2b717efa 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -19,16 +19,16 @@ * Boston, MA 02111-1307, USA. */ -#ifndef GST_DISABLE_GST_DEBUG - #include "gst_private.h" +#include "gstdebugutils.h" + +#ifndef GST_DISABLE_GST_DEBUG #include #include #include #include "gstinfo.h" -#include "gstdebugutils.h" #include "gstbin.h" #include "gstobject.h" #include "gstghostpad.h"