mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtspsrc: Parse all rtpinfo entries
Do not forget to parse all rtp-info entries, instead of parsing the first one only. Fixes #605222
This commit is contained in:
parent
5d86010dad
commit
ac03ad782a
1 changed files with 4 additions and 2 deletions
|
@ -5115,6 +5115,7 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment)
|
|||
GstRTSPResult res;
|
||||
gchar *hval;
|
||||
gfloat fval;
|
||||
gint hval_idx;
|
||||
|
||||
GST_RTSP_STATE_LOCK (src);
|
||||
|
||||
|
@ -5179,8 +5180,9 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment)
|
|||
/* parse the RTP-Info header field (if ANY) to get the base seqnum and timestamp
|
||||
* for the RTP packets. If this is not present, we assume all starts from 0...
|
||||
* This is info for the RTP session manager that we pass to it in caps. */
|
||||
if (gst_rtsp_message_get_header (&response, GST_RTSP_HDR_RTP_INFO,
|
||||
&hval, 0) == GST_RTSP_OK)
|
||||
hval_idx = 0;
|
||||
while (gst_rtsp_message_get_header (&response, GST_RTSP_HDR_RTP_INFO,
|
||||
&hval, hval_idx++) == GST_RTSP_OK)
|
||||
gst_rtspsrc_parse_rtpinfo (src, hval);
|
||||
|
||||
gst_rtsp_message_unset (&response);
|
||||
|
|
Loading…
Reference in a new issue