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

Comment out the dccp-service-code stuff since we do not implement it

at the moment
parent dd1dd6a6
...@@ -708,26 +708,20 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url ) ...@@ -708,26 +708,20 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
sout_stream_id_t *id = p_sys->es[i]; sout_stream_id_t *id = p_sys->es[i];
const char *mime_major; /* major MIME type */ const char *mime_major; /* major MIME type */
const char *proto = "RTP/AVP"; /* protocol */ const char *proto = "RTP/AVP"; /* protocol */
const char *scode; /* DCCP service code */
switch( id->i_cat ) switch( id->i_cat )
{ {
case VIDEO_ES: case VIDEO_ES:
mime_major = "video"; mime_major = "video";
scode = "SC:RTPV";
break; break;
case AUDIO_ES: case AUDIO_ES:
mime_major = "audio"; mime_major = "audio";
scode = "SC:RTPA";
break; break;
case SPU_ES: case SPU_ES:
mime_major = "text"; mime_major = "text";
scode = "SC:RTPT";
break; break;
default: default:
mime_major = "application"; continue;
scode = "SC:RTPO";
break;
} }
if( rtsp_url == NULL ) if( rtsp_url == NULL )
...@@ -763,8 +757,11 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url ) ...@@ -763,8 +757,11 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
{ {
if( id->listen_fd != NULL ) if( id->listen_fd != NULL )
sdp_AddAttribute( &psz_sdp, "setup", "passive" ); sdp_AddAttribute( &psz_sdp, "setup", "passive" );
#if 0
if( p_sys->proto == IPPROTO_DCCP ) if( p_sys->proto == IPPROTO_DCCP )
sdp_AddAttribute( &psz_sdp, "dccp-service-code", scode ); sdp_AddAttribute( &psz_sdp, "dccp-service-code",
"SC:RTP%c", toupper( mime_major[0] ) );
#endif
} }
} }
......
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