rtsp-media: Properly return first rtptime

Instead we where returning first GstBuffer timestamp. This would result
in clock skew and unwanted behaviour in RTSP playback.

https://bugzilla.gnome.org/show_bug.cgi?id=746479
This commit is contained in:
Nicolas Dufresne 2015-03-21 11:04:05 -04:00
parent 01562286ba
commit dfb053add3

View file

@ -2486,12 +2486,12 @@ gst_rtsp_stream_get_rtpinfo (GstRTSPStream * stream,
*seq = gst_rtp_buffer_get_seq (&rtp_buffer);
}
gst_rtp_buffer_unmap (&rtp_buffer);
if (rtptime) {
*rtptime = GST_BUFFER_TIMESTAMP (buffer);
*rtptime = gst_rtp_buffer_get_timestamp (&rtp_buffer);
}
gst_rtp_buffer_unmap (&rtp_buffer);
if (running_time) {
*running_time =
gst_segment_to_running_time (segment, GST_FORMAT_TIME,