diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2008-08-27 15:55:05 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-08-27 15:55:05 +0000 |
commit | ff1503f5cf8bfc172a15b4f7e02e6d4e8ad77494 (patch) | |
tree | e5331f1fb41b520f85673901672689fd7e8d44e5 /gst/realmedia/rdtjitterbuffer.c | |
parent | 35b3e2b59649c3adb6272f37ad8ca686b916161d (diff) |
gst/realmedia/rdtdepay.*: Parse other values from the incomming caps.
Original commit message from CVS:
* gst/realmedia/rdtdepay.c: (gst_rdt_depay_init),
(gst_rdt_depay_setcaps), (gst_rdt_depay_sink_event),
(create_segment_event), (gst_rdt_depay_push),
(gst_rdt_depay_handle_data), (gst_rdt_depay_change_state):
* gst/realmedia/rdtdepay.h:
Parse other values from the incomming caps.
Add event handler to handle flushing and segments.
Create segment events.
* gst/realmedia/rdtjitterbuffer.c: (rdt_jitter_buffer_insert):
Do skew correction based on RDT timestamps.
* gst/realmedia/rdtmanager.c: (activate_session),
(gst_rdt_manager_parse_caps), (gst_rdt_manager_setcaps),
(create_recv_rtp):
Parse caps to get the clockrate needed for the jitterbuffer.
* gst/realmedia/rmdemux.c: (gst_rmdemux_parse_video_packet):
Apply timestamp fixup after correcting for initial timestamp and
internal base timestamp corrections.
Diffstat (limited to 'gst/realmedia/rdtjitterbuffer.c')
-rw-r--r-- | gst/realmedia/rdtjitterbuffer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/realmedia/rdtjitterbuffer.c b/gst/realmedia/rdtjitterbuffer.c index 5e622a6b..1e34c506 100644 --- a/gst/realmedia/rdtjitterbuffer.c +++ b/gst/realmedia/rdtjitterbuffer.c @@ -360,6 +360,10 @@ rdt_jitter_buffer_insert (RDTJitterBuffer * jbuf, GstBuffer * buf, g_return_val_if_fail (more == TRUE, FALSE); seqnum = gst_rdt_packet_data_get_seq (&packet); + /* do skew calculation by measuring the difference between rtptime and the + * receive time, this function will retimestamp @buf with the skew corrected + * running time. */ + rtptime = gst_rdt_packet_data_get_timestamp (&packet); /* loop the list to skip strictly smaller seqnum buffers */ for (list = jbuf->packets->head; list; list = g_list_next (list)) { @@ -385,11 +389,7 @@ rdt_jitter_buffer_insert (RDTJitterBuffer * jbuf, GstBuffer * buf, break; } - /* do skew calculation by measuring the difference between rtptime and the - * receive time, this function will retimestamp @buf with the skew corrected - * running time. */ - //rtptime = gst_rtp_buffer_get_timestamp (buf); - rtptime = 0; + if (clock_rate) { time = calculate_skew (jbuf, rtptime, time, clock_rate); GST_BUFFER_TIMESTAMP (buf) = time; |