Commit dffddfae authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove use SAP/TTL cruft

parent caf669c9
...@@ -216,7 +216,6 @@ struct session_descriptor_t ...@@ -216,7 +216,6 @@ struct session_descriptor_t
char *psz_name; char *psz_name;
char *psz_uri; char *psz_uri;
int i_port; int i_port;
int i_ttl;
int i_payload; /* SAP Payload type */ int i_payload; /* SAP Payload type */
char *psz_group; char *psz_group;
......
...@@ -345,7 +345,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -345,7 +345,6 @@ static int Open( vlc_object_t *p_this )
p_session->psz_uri = strdup( url.psz_host ); p_session->psz_uri = strdup( url.psz_host );
p_session->i_port = url.i_port; p_session->i_port = url.i_port;
p_session->psz_sdp = NULL; p_session->psz_sdp = NULL;
p_session->i_ttl = var_CreateGetInteger (p_access, "ttl");
p_session->i_payload = 33; p_session->i_payload = 33;
p_session->b_rtp = strstr( psz_access, "rtp") ? 1 : 0; p_session->b_rtp = strstr( psz_access, "rtp") ? 1 : 0;
......
...@@ -632,12 +632,11 @@ static char *SDPGenerate( sap_handler_t *p_sap, ...@@ -632,12 +632,11 @@ static char *SDPGenerate( sap_handler_t *p_sap,
return NULL; return NULL;
} }
/* see the lists in modules/stream_out/rtp.c for compliance stuff */
int res = asprintf (&psz_sdp, int res = asprintf (&psz_sdp,
"v=0\r\n" "v=0\r\n"
"o=- "I64Fd" %d IN IP%c %s\r\n" "o=- "I64Fd" %d IN IP%c %s\r\n"
"s=%s\r\n" "s=%s\r\n"
"c=IN IP%c %s/%d\r\n" "c=IN IP%c %s/255\r\n"
"t=0 0\r\n" "t=0 0\r\n"
"a=tool:"PACKAGE_STRING"\r\n" "a=tool:"PACKAGE_STRING"\r\n"
"a=recvonly\r\n" "a=recvonly\r\n"
...@@ -648,7 +647,6 @@ static char *SDPGenerate( sap_handler_t *p_sap, ...@@ -648,7 +647,6 @@ static char *SDPGenerate( sap_handler_t *p_sap,
i_sdp_id, i_sdp_version, i_sdp_id, i_sdp_version,
ipv, p_addr->psz_machine, ipv, p_addr->psz_machine,
psz_name, ipv, psz_uri, psz_name, ipv, psz_uri,
(p_session->i_ttl != -1) ? p_session->i_ttl : 255,
(sfilter != NULL) ? sfilter : "", (sfilter != NULL) ? sfilter : "",
p_session->i_port, p_session->i_port,
p_session->b_rtp ? "RTP/AVP" : "udp", p_session->b_rtp ? "RTP/AVP" : "udp",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment