From 90da904f1e435812ce245928b80cfd325785ff37 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 29 Jun 2003 19:46:12 +0000 Subject: compatibility fix for new GST_DEBUG stuff. Original commit message from CVS: compatibility fix for new GST_DEBUG stuff. Includes fixes for missing includes for config.h and unistd.h I only ensured for plugins I can build that they work, so if some of them are still broken, you gotta fix them yourselves unfortunately. --- gst/udp/gstudpsink.c | 5 ++++- gst/udp/gstudpsrc.c | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'gst/udp') diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c index 3d2580c3..a251eede 100644 --- a/gst/udp/gstudpsink.c +++ b/gst/udp/gstudpsink.c @@ -18,6 +18,9 @@ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "gstudpsink.h" #define UDP_DEFAULT_HOST "localhost" @@ -271,7 +274,7 @@ gst_udpsink_chain (GstPad *pad, GstBuffer *buf) if (udpsink->clock) { GstClockID id = gst_clock_new_single_shot_id (udpsink->clock, GST_BUFFER_TIMESTAMP (buf)); - GST_DEBUG (0, "udpsink: clock wait: %" G_GUINT64_FORMAT "\n", GST_BUFFER_TIMESTAMP (buf)); + GST_DEBUG ("udpsink: clock wait: %" G_GUINT64_FORMAT "\n", GST_BUFFER_TIMESTAMP (buf)); gst_element_clock_wait (GST_ELEMENT (udpsink), id, NULL); gst_clock_id_free (id); } diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index f400b0fb..b3101e00 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -18,7 +18,12 @@ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "gstudpsrc.h" +#include #define UDP_DEFAULT_PORT 4951 #define UDP_DEFAULT_MULTICAST_GROUP "0.0.0.0" -- cgit