]> sjero.net Git - linphone/commitdiff
add dscp settings
authorSimon Morlat <simon.morlat@linphone.org>
Fri, 31 Aug 2012 08:04:57 +0000 (10:04 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Fri, 31 Aug 2012 08:05:20 +0000 (10:05 +0200)
coreapi/linphonecall.c
mediastreamer2

index 68e5936ed5c21c5d1cf415d4890813a23e772ef7..929814b52c3eace20e60fb7f4066def51f4bd6e8 100644 (file)
@@ -938,8 +938,11 @@ void linphone_call_init_audio_stream(LinphoneCall *call){
        LinphoneCore *lc=call->core;
        SalMediaDescription *md=call->localdesc;
        AudioStream *audiostream;
+       int dscp=lp_config_get_int(lc->config,"rtp","audio_dscp",-1);
 
        call->audiostream=audiostream=audio_stream_new(md->streams[0].rtp_port,md->streams[0].rtcp_port,linphone_core_ipv6_enabled(lc));
+       if (dscp!=-1)
+               audio_stream_set_dscp(audiostream,dscp);
        if (linphone_core_echo_limiter_enabled(lc)){
                const char *type=lp_config_get_string(lc->config,"sound","el_type","mic");
                if (strcasecmp(type,"mic")==0)
@@ -990,7 +993,11 @@ void linphone_call_init_video_stream(LinphoneCall *call){
 
        if ((lc->video_conf.display || lc->video_conf.capture) && md->streams[1].rtp_port>0){
                int video_recv_buf_size=lp_config_get_int(lc->config,"video","recv_buf_size",0);
+               int dscp=lp_config_get_int(lc->config,"rtp","video_dscp",-1);
+               
                call->videostream=video_stream_new(md->streams[1].rtp_port,md->streams[1].rtcp_port,linphone_core_ipv6_enabled(lc));
+               if (dscp!=-1)
+                       video_stream_set_dscp(call->videostream,dscp);
                video_stream_enable_display_filter_auto_rotate(call->videostream, lp_config_get_int(lc->config,"video","display_filter_auto_rotate",0));
                if (video_recv_buf_size>0) rtp_session_set_recv_buf_size(call->videostream->session,video_recv_buf_size);
 
index 1a267bd2fb946b51b877a8cbc78f3445c11ab361..06b53e9d743ce42d9cf1d343514889a6a44a1ef5 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 1a267bd2fb946b51b877a8cbc78f3445c11ab361
+Subproject commit 06b53e9d743ce42d9cf1d343514889a6a44a1ef5