]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7501 add vbsize to mod video buffer size
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 14 May 2015 22:39:06 +0000 (17:39 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:32 +0000 (12:47 -0500)
src/switch_core_media.c

index f9532e5e35547717f7e9030e881e85eb118d8be9..03c6278de7b1f617914612e888c16073d04f1be8 100644 (file)
@@ -1843,7 +1843,16 @@ static void check_jb(switch_core_session_t *session, const char *input, int32_t
                }
                
                if (v_engine->rtp_session) {
-                       if (!strncasecmp(input, "vdebug:", 7)) {
+                       if (!strncasecmp(input, "vbsize:", 7)) {
+                               int frames = 0;
+                               s = input + 7;
+                               
+                               frames = atoi(s);
+                               if (frames > 0) {
+                                       switch_rtp_set_video_buffer_size(v_engine->rtp_session, frames);
+                               }
+                               return;
+                       } else if (!strncasecmp(input, "vdebug:", 7)) {
                                s = input + 7;
                                
                                if (s && !strcmp(s, "off")) {