diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2007-09-14 04:18:34 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-21 17:48:02 +0100 |
commit | f5183162538f406e41f161068ef6ff95f61f0759 (patch) | |
tree | 0d9e448fc1c9f46d57033447d6717e9b366df7a2 /gst | |
parent | 264d6779aba96ee6655cf9813487fce2bd78adc5 (diff) | |
download | gst-plugins-bad-f5183162538f406e41f161068ef6ff95f61f0759.tar.gz gst-plugins-bad-f5183162538f406e41f161068ef6ff95f61f0759.tar.bz2 gst-plugins-bad-f5183162538f406e41f161068ef6ff95f61f0759.zip |
[MOVED FROM GST-P-FARSIGHT] Remove get_times (Wim says its only good for really fake sources)
20070914041834-3e2dc-fff4d5da2a145f19e7b610a1027d2c4d4bc5eae0.gz
Diffstat (limited to 'gst')
-rw-r--r-- | gst/dtmf/gstdtmfsrc.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 23803e01..8c373ea3 100644 --- a/gst/dtmf/gstdtmfsrc.c +++ b/gst/dtmf/gstdtmfsrc.c @@ -250,9 +250,6 @@ static void gst_dtmf_src_add_start_event (GstDTMFSrc *dtmfsrc, gint event_number, gint event_volume); static void gst_dtmf_src_add_stop_event (GstDTMFSrc *dtmfsrc); -static void gst_dtmf_src_get_times (GstBaseSrc * basesrc, - GstBuffer * buffer, GstClockTime * start, GstClockTime * end); - static gboolean gst_dtmf_src_unlock (GstBaseSrc *src); @@ -300,8 +297,6 @@ gst_dtmf_src_class_init (GstDTMFSrcClass * klass) gstbasesrc_class->event = GST_DEBUG_FUNCPTR (gst_dtmf_src_handle_event); - gstbasesrc_class->get_times = - GST_DEBUG_FUNCPTR (gst_dtmf_src_get_times); gstbasesrc_class->create = GST_DEBUG_FUNCPTR (gst_dtmf_src_create); @@ -580,28 +575,6 @@ gst_dtmf_src_generate_tone(GstDTMFSrcEvent *event, DTMF_KEY key, float duration, } } -static void -gst_dtmf_src_get_times (GstBaseSrc * basesrc, GstBuffer * buffer, - GstClockTime * start, GstClockTime * end) -{ - /* for live sources, sync on the timestamp of the buffer */ - if (gst_base_src_is_live (basesrc)) { - GstClockTime timestamp = GST_BUFFER_TIMESTAMP (buffer); - - if (GST_CLOCK_TIME_IS_VALID (timestamp)) { - /* get duration to calculate end time */ - GstClockTime duration = GST_BUFFER_DURATION (buffer); - - *start = timestamp; - if (GST_CLOCK_TIME_IS_VALID (duration)) { - *end = *start + duration; - } - } - } else { - *start = -1; - *end = -1; - } -} static GstBuffer * |