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/rtp/gstrtpL16enc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gst/rtp/gstrtpL16enc.c') diff --git a/gst/rtp/gstrtpL16enc.c b/gst/rtp/gstrtpL16enc.c index 9dec5cc7..c5a60a68 100644 --- a/gst/rtp/gstrtpL16enc.c +++ b/gst/rtp/gstrtpL16enc.c @@ -17,6 +17,9 @@ * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include "gstrtpL16enc.h" @@ -195,7 +198,7 @@ gst_rtpL16enc_chain (GstPad * pad, GstBuffer * buf) switch (GST_EVENT_TYPE (event)) { case GST_EVENT_DISCONTINUOUS: - GST_DEBUG (GST_CAT_EVENT, "discont"); + GST_DEBUG ("discont"); rtpL16enc->next_time = 0; gst_pad_event_default (pad, event); return; @@ -238,7 +241,7 @@ gst_rtpL16enc_chain (GstPad * pad, GstBuffer * buf) memcpy (GST_BUFFER_DATA (outbuf), packet->data, rtp_packet_get_packet_len (packet)); memcpy (GST_BUFFER_DATA (outbuf) + rtp_packet_get_packet_len(packet), GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf)); - GST_DEBUG (0,"gst_rtpL16enc_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf)); + GST_DEBUG ("gst_rtpL16enc_chain: pushing buffer of size %d", GST_BUFFER_SIZE(outbuf)); gst_pad_push (rtpL16enc->srcpad, outbuf); ++rtpL16enc->seq; @@ -288,7 +291,7 @@ gst_rtpL16enc_change_state (GstElement * element) rtpL16enc = GST_RTP_L16_ENC (element); - GST_DEBUG (0, "state pending %d\n", GST_STATE_PENDING (element)); + GST_DEBUG ("state pending %d\n", GST_STATE_PENDING (element)); /* if going down into NULL state, close the file if it's open */ switch (GST_STATE_TRANSITION (element)) { -- cgit