From f3bcdb3a297a739348b377b3ec4fa8c023aff386 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Thu, 20 Mar 2008 18:39:37 +0000 Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Clean unused stuff... 20080320183937-4f0f6-bcb841cdc07f9e9677512f4b50b4b659a58c6783.gz --- gst/dtmf/gstrtpdtmfdepay.c | 52 ---------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/gst/dtmf/gstrtpdtmfdepay.c b/gst/dtmf/gstrtpdtmfdepay.c index b2c676d..1f714cc 100644 --- a/gst/dtmf/gstrtpdtmfdepay.c +++ b/gst/dtmf/gstrtpdtmfdepay.c @@ -35,7 +35,6 @@ #endif -#define GST_TONE_DTMF_TYPE_EVENT 0 #define DEFAULT_PACKET_INTERVAL 50 /* ms */ #define MIN_PACKET_INTERVAL 10 /* ms */ #define MAX_PACKET_INTERVAL 50 /* ms */ @@ -152,11 +151,6 @@ static GstBuffer *gst_rtp_dtmf_depay_process (GstBaseRTPDepayload * depayload, gboolean gst_rtp_dtmf_depay_setcaps (GstBaseRTPDepayload * filter, GstCaps * caps); -/*static void -gst_rtp_dtmf_depay_set_gst_timestamp (GstBaseRTPDepayload * filter, - guint32 rtptime, GstBuffer * buf); -*/ - static void gst_rtp_dtmf_depay_base_init (gpointer klass) { @@ -188,7 +182,6 @@ gst_rtp_dtmf_depay_class_init (GstRtpDTMFDepayClass * klass) gstbasertpdepayload_class->process = gst_rtp_dtmf_depay_process; gstbasertpdepayload_class->set_caps = gst_rtp_dtmf_depay_setcaps; - // gstbasertpdepayload_class->set_gst_timestamp = gst_rtp_dtmf_depay_set_gst_timestamp; } @@ -223,51 +216,6 @@ gst_rtp_dtmf_depay_setcaps (GstBaseRTPDepayload * filter, GstCaps * caps) return TRUE; } -void -gst_rtp_dtmf_depay_set_gst_timestamp (GstBaseRTPDepayload * filter, - guint32 rtptime, GstBuffer * buf) -{ - GstClockTime timestamp, duration; - - - timestamp = GST_BUFFER_TIMESTAMP (buf); - duration = GST_BUFFER_DURATION (buf); - - /* if this is the first buffer send a NEWSEGMENT */ - if (filter->need_newsegment) { - GstEvent *event; - GstClockTime stop, position; - - stop = -1; - - position = 0; - - event = - gst_event_new_new_segment_full (FALSE, 1.0, - 1.0, GST_FORMAT_TIME, 0, stop, position); - - gst_pad_push_event (filter->srcpad, event); - - filter->need_newsegment = FALSE; - GST_DEBUG_OBJECT (filter, "Pushed newsegment event on this first buffer"); - } -} - -#if 0 -static void -gst_dtmf_src_generate_silence(GstBuffer * buffer, float duration) -{ - gint buf_size; - - /* Create a buffer with data set to 0 */ - buf_size = ((duration/1000)*SAMPLE_RATE*SAMPLE_SIZE*CHANNELS)/8; - GST_BUFFER_SIZE (buffer) = buf_size; - GST_BUFFER_MALLOCDATA (buffer) = g_malloc0(buf_size); - GST_BUFFER_DATA (buffer) = GST_BUFFER_MALLOCDATA (buffer); - -} -#endif - static void gst_dtmf_src_generate_tone(GstRtpDTMFDepay *rtpdtmfdepay, GstRTPDTMFPayload payload, GstBuffer * buffer) -- 2.7.4