]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9708
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Nov 2016 23:45:00 +0000 (17:45 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Nov 2016 23:45:00 +0000 (17:45 -0600)
src/switch_core_media.c

index 5cf2f2b6247e1f81b2a72bed5dffaed6b9ce579f..973efa351ca1f4cd299ddb5da223faf22459669b 100644 (file)
@@ -6284,7 +6284,7 @@ static void *SWITCH_THREAD_FUNC audio_write_thread(switch_thread_t *thread, void
                        
                }
 
-               if (switch_frame_buffer_pop(a_engine->write_fb, &pop) == SWITCH_STATUS_SUCCESS && pop) {
+               if (switch_frame_buffer_trypop(a_engine->write_fb, &pop) == SWITCH_STATUS_SUCCESS && pop) {
                        switch_frame_t *frame = (switch_frame_t *)pop;
                        
                        if ((switch_size_t)pop == 1) {