]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10503 return causes break on first loop and can cause buildup in buffer
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 31 Aug 2017 19:17:25 +0000 (14:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 31 Aug 2017 19:17:25 +0000 (14:17 -0500)
src/mod/applications/mod_av/avformat.c

index 03b9054381c56bdf5dde917bfde0f75c2cc5640b..2fc3459f121d0791b64456f0780d82cba47fc35b 100644 (file)
@@ -1915,7 +1915,6 @@ GCC_DIAG_ON(deprecated-declarations)
                switch_core_timer_init(&context->audio_timer, "soft", 1, handle->samplerate / 1000, context->pool);
        }
 
-
        while ((inuse = switch_buffer_inuse(context->audio_buffer)) >= bytes) {
                AVPacket pkt[2] = { {0} };
                int got_packet[2] = {0};
@@ -2025,10 +2024,6 @@ GCC_DIAG_ON(deprecated-declarations)
                                }
                        }
                }
-
-               if (data) {
-                       break;
-               }
        }
 
  end: