]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11055: [mod_av] resize image to recording image size if it does not match recordin...
authorMike Jerris <mike@jerris.com>
Mon, 9 Apr 2018 16:30:30 +0000 (12:30 -0400)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:49 +0000 (07:21 +0000)
src/mod/applications/mod_av/avformat.c

index 4d9929ea05dfa1e109d4a53ed3812970ca219660..744318389160db1176e672983ae44ed7d3746264 100644 (file)
@@ -775,10 +775,10 @@ static void *SWITCH_THREAD_FUNC video_thread_run(switch_thread_t *thread, void *
                        if (!d_w) d_w = img->d_w;
                        if (!d_h) d_h = img->d_h;
                        
-                       //if (d_w && d_h && (d_w != img->d_w || d_h != img->d_h)) {
+                       if (d_w && d_h && (d_w != img->d_w || d_h != img->d_h)) {
                                /* scale to match established stream */
-                       //      switch_img_fit(&img, d_w, d_h, SWITCH_FIT_SIZE);
-                       //}
+                               switch_img_fit(&img, d_w, d_h, SWITCH_FIT_SIZE);
+                       }
                } else {
                        continue;
                }