gst/gstinfo.c: Fix warning if HAVE_PRINTF_EXTENSION is undefined (spotted by Peter...
authorTim-Philipp Müller <tim@centricular.net>
Mon, 25 Sep 2006 10:36:23 +0000 (10:36 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 25 Sep 2006 10:36:23 +0000 (10:36 +0000)
Original commit message from CVS:
* gst/gstinfo.c:
Fix warning if HAVE_PRINTF_EXTENSION is undefined
(spotted by Peter Kjellerstedt).

ChangeLog
gst/gstinfo.c

index 6fed5db..069d754 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-25  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/gstinfo.c:
+         Fix warning if HAVE_PRINTF_EXTENSION is undefined
+         (spotted by Peter Kjellerstedt).
+
 2006-09-23  Wim Taymans  <wim@fluendo.com>
 
        Based on patch by: Antoine Tremblay <hexa00 at gmail dot com>
index 9ad91a1..066e44c 100644 (file)
@@ -511,6 +511,8 @@ gst_debug_print_object (gpointer ptr)
   return g_strdup_printf ("%p", ptr);
 }
 
+#ifdef HAVE_PRINTF_EXTENSION
+
 static gchar *
 gst_debug_print_segment (gpointer ptr)
 {
@@ -553,6 +555,8 @@ gst_debug_print_segment (gpointer ptr)
   }
 }
 
+#endif /* HAVE_PRINTF_EXTENSION */
+
 /**
  * gst_debug_construct_term_color:
  * @colorinfo: the color info