mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
01562286ba
commit
dfb053add3
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue