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

Generic support for text streams in RTP.

No actually subtype implemented currently though.
parent 871412c6
...@@ -701,13 +701,20 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url ) ...@@ -701,13 +701,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 */
if( id->i_cat == AUDIO_ES ) switch( id->i_cat )
mime_major = "audio"; {
else case VIDEO_ES:
if( id->i_cat == VIDEO_ES )
mime_major = "video"; mime_major = "video";
else break;
case AUDIO_ES:
mime_major = "audio";
break;
case SPU_ES:
mime_major = "text";
break;
default:
continue; continue;
}
sdp_AddMedia( &psz_sdp, mime_major, "RTP/AVP", inclport * id->i_port, sdp_AddMedia( &psz_sdp, mime_major, "RTP/AVP", inclport * id->i_port,
id->i_payload_type, VLC_FALSE, id->i_bitrate, id->i_payload_type, VLC_FALSE, id->i_bitrate,
......
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