mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
use 0.0.0.0 or :: for c= line instead of server address
This commit is contained in:
parent
275e2d52a4
commit
f9f994e33d
1 changed files with 11 additions and 2 deletions
|
@ -131,8 +131,17 @@ gst_rtsp_sdp_from_media (GstSDPMessage * sdp, GstSDPInfo * info,
|
|||
gst_sdp_media_set_proto (smedia, "RTP/AVP");
|
||||
|
||||
/* for the c= line */
|
||||
gst_sdp_media_add_connection (smedia, "IN", info->server_proto,
|
||||
info->server_ip, 16, 0);
|
||||
if (strcmp (info->server_proto, "IP6") == 0) {
|
||||
gst_sdp_media_add_connection (smedia, "IN", info->server_proto,
|
||||
"::", 16, 0);
|
||||
} else {
|
||||
if (strcmp (info->server_proto, "IP4") != 0) {
|
||||
GST_WARNING ("unknown ip version when creating connection line in sdp,"
|
||||
" using IP4");
|
||||
}
|
||||
gst_sdp_media_add_connection (smedia, "IN", info->server_proto,
|
||||
"0.0.0.0", 16, 0);
|
||||
}
|
||||
|
||||
/* get clock-rate, media type and params for the rtpmap attribute */
|
||||
gst_structure_get_int (s, "clock-rate", &caps_rate);
|
||||
|
|
Loading…
Reference in a new issue