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.
This commit is contained in:
Stefan Kost 2007-11-18 19:30:10 +00:00
parent d8e77f9bf8
commit f3d71f7ef5
3 changed files with 11 additions and 5 deletions

View file

@ -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> 2007-11-17 Stefan Kost <ensonic@users.sf.net>
* gst/gstevent.c: * gst/gstevent.c:

View file

@ -1531,10 +1531,9 @@ static GstStateChangeReturn
gst_bin_get_state_func (GstElement * element, GstState * state, gst_bin_get_state_func (GstElement * element, GstState * state,
GstState * pending, GstClockTime timeout) GstState * pending, GstClockTime timeout)
{ {
GstBin *bin = GST_BIN (element);
GstStateChangeReturn ret; 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); ret = parent_class->get_state (element, state, pending, timeout);

View file

@ -19,16 +19,16 @@
* Boston, MA 02111-1307, USA. * Boston, MA 02111-1307, USA.
*/ */
#ifndef GST_DISABLE_GST_DEBUG
#include "gst_private.h" #include "gst_private.h"
#include "gstdebugutils.h"
#ifndef GST_DISABLE_GST_DEBUG
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "gstinfo.h" #include "gstinfo.h"
#include "gstdebugutils.h"
#include "gstbin.h" #include "gstbin.h"
#include "gstobject.h" #include "gstobject.h"
#include "gstghostpad.h" #include "gstghostpad.h"