summaryrefslogtreecommitdiff
path: root/gst/rtpmanager/gstrtpjitterbuffer.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-11-19 09:06:29 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-11 02:30:38 +0100
commit592c3f222f0947596b2a81bcbe1cba448925bae8 (patch)
tree6bbc327909915340b1ae801a1b9d32319c262fbf /gst/rtpmanager/gstrtpjitterbuffer.h
parentc3645239f58bb2e14110059e104338fc6d4fd44d (diff)
gst/rtpmanager/gstrtpbin.c: Remove internal sync pad, use signals instead to get lip-sync notifications.
Original commit message from CVS: * gst/rtpmanager/gstrtpbin.c: (gst_rtp_bin_associate), (gst_rtp_bin_handle_sync), (create_stream), (free_stream), (new_ssrc_pad_found): Remove internal sync pad, use signals instead to get lip-sync notifications. * gst/rtpmanager/gstrtpjitterbuffer.c: (gst_rtp_jitter_buffer_base_init), (gst_rtp_jitter_buffer_class_init), (gst_rtp_jitter_buffer_internal_links), (create_rtcp_sink), (remove_rtcp_sink), (gst_rtp_jitter_buffer_request_new_pad), (gst_rtp_jitter_buffer_release_pad), (gst_rtp_jitter_buffer_sink_rtcp_event), (gst_rtp_jitter_buffer_chain_rtcp), (gst_rtp_jitter_buffer_get_property): * gst/rtpmanager/gstrtpjitterbuffer.h: Make it possible to send SR packets to the jitterbuffer. Check if the SR timestamps are valid by comparing them to the RTP timestamps. Signal the SR packet and the timing information to listeners. * gst/rtpmanager/gstrtpssrcdemux.c: (create_demux_pad_for_ssrc), (gst_rtp_ssrc_demux_rtcp_chain), (gst_rtp_ssrc_demux_src_query): Remove some unused code. * gst/rtpmanager/rtpjitterbuffer.c: (rtp_jitter_buffer_reset_skew), (calculate_skew), (rtp_jitter_buffer_get_sync): * gst/rtpmanager/rtpjitterbuffer.h: Keep track of the last seen RTP timestamp so that we can filter out invalid SR packets.
Diffstat (limited to 'gst/rtpmanager/gstrtpjitterbuffer.h')
-rw-r--r--gst/rtpmanager/gstrtpjitterbuffer.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gst/rtpmanager/gstrtpjitterbuffer.h b/gst/rtpmanager/gstrtpjitterbuffer.h
index 40908eabf..45e689793 100644
--- a/gst/rtpmanager/gstrtpjitterbuffer.h
+++ b/gst/rtpmanager/gstrtpjitterbuffer.h
@@ -71,6 +71,9 @@ struct _GstRtpJitterBufferClass
/* signals */
GstCaps* (*request_pt_map) (GstRtpJitterBuffer *buffer, guint pt);
+ void (*handle_sync) (GstRtpJitterBuffer *buffer, GstStructure *s);
+
+ /* actions */
void (*clear_pt_map) (GstRtpJitterBuffer *buffer);
/*< private > */
@@ -79,10 +82,6 @@ struct _GstRtpJitterBufferClass
GType gst_rtp_jitter_buffer_get_type (void);
-void gst_rtp_jitter_buffer_get_sync (GstRtpJitterBuffer *buffer,
- guint64 *rtptime, guint64 *timestamp,
- guint32 *clock_rate);
-
G_END_DECLS
#endif /* __GST_RTP_JITTER_BUFFER_H__ */