use 0.0.0.0 or :: for c= line instead of server address

This commit is contained in:
Alexander Schrab 2013-06-12 15:22:57 +02:00 committed by Wim Taymans
parent 275e2d52a4
commit f9f994e33d

View file

@ -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);