]> sjero.net Git - linphone/commitdiff
implement property to set video max recv buf size
authorSimon Morlat <simon.morlat@linphone.org>
Mon, 26 Mar 2012 09:54:33 +0000 (11:54 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Mon, 26 Mar 2012 09:54:33 +0000 (11:54 +0200)
coreapi/linphonecall.c
mediastreamer2

index 82d4e5098f3c41324fa66258d8bfacd4cbffe001..4872a4cdcb4bec02d41d84bad02caf666580a5be 100644 (file)
@@ -898,18 +898,21 @@ void linphone_call_init_media_streams(LinphoneCall *call){
 #ifdef VIDEO_ENABLED
 
        if ((lc->video_conf.display || lc->video_conf.capture) && md->streams[1].port>0){
+               int video_recv_buf_size=lp_config_get_int(lc->config,"video","recv_buf_size",0);
                call->videostream=video_stream_new(md->streams[1].port,linphone_core_ipv6_enabled(lc));
-        video_stream_enable_display_filter_auto_rotate(call->videostream, lp_config_get_int(lc->config,"video","display_filter_auto_rotate",0));
-       if( lc->video_conf.displaytype != NULL)
-               video_stream_set_display_filter_name(call->videostream,lc->video_conf.displaytype);
-       video_stream_set_event_callback(call->videostream,video_stream_event_cb, call);
-       if (lc->rtptf){
-               RtpTransport *vrtp=lc->rtptf->video_rtp_func(lc->rtptf->video_rtp_func_data, call->video_port);
-               RtpTransport *vrtcp=lc->rtptf->video_rtcp_func(lc->rtptf->video_rtcp_func_data, call->video_port+1);
-               rtp_session_set_transports(call->videostream->session,vrtp,vrtcp);
-       }
-       call->videostream_app_evq = ortp_ev_queue_new();
-       rtp_session_register_event_queue(call->videostream->session,call->videostream_app_evq);
+               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);
+          
+               if( lc->video_conf.displaytype != NULL)
+                       video_stream_set_display_filter_name(call->videostream,lc->video_conf.displaytype);
+               video_stream_set_event_callback(call->videostream,video_stream_event_cb, call);
+               if (lc->rtptf){
+                       RtpTransport *vrtp=lc->rtptf->video_rtp_func(lc->rtptf->video_rtp_func_data, call->video_port);
+                       RtpTransport *vrtcp=lc->rtptf->video_rtcp_func(lc->rtptf->video_rtcp_func_data, call->video_port+1);
+                       rtp_session_set_transports(call->videostream->session,vrtp,vrtcp);
+               }
+               call->videostream_app_evq = ortp_ev_queue_new();
+               rtp_session_register_event_queue(call->videostream->session,call->videostream_app_evq);
 #ifdef TEST_EXT_RENDERER
                video_stream_set_render_callback(call->videostream,rendercb,NULL);
 #endif
index d1e3505352c469f91333f65e43cda48560b26a91..b2893aabe7f2ea65a084f60bdfde0962b680ab53 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d1e3505352c469f91333f65e43cda48560b26a91
+Subproject commit b2893aabe7f2ea65a084f60bdfde0962b680ab53