]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11896: [core] Fix typos
authorAndrey Volk <andywolk@gmail.com>
Wed, 19 Jun 2019 21:08:07 +0000 (01:08 +0400)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 20:26:51 +0000 (00:26 +0400)
src/switch_buffer.c
src/switch_core_media_bug.c

index deaa7a0599b2bae652496b719cde9bb727ad9506..5ca53a4683ba19e9ca2b5633c00e426d59467768 100644 (file)
@@ -122,8 +122,8 @@ SWITCH_DECLARE(switch_status_t) switch_buffer_create_dynamic(switch_buffer_t **b
                        start_len = 250;
                }
 
-               if (!block_size) {
-                       block_size = start_len;
+               if (!blocksize) {
+                       blocksize = start_len;
                }
                
                if (!(new_buffer->data = malloc(start_len))) {
index 7e54d7bfabb6b04ccdff8c07599d6ee3f9f36a49..f30bf4ac23f2811c1aecb42daac8c20bca2add30 100644 (file)
@@ -828,7 +828,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t
 
 
        if (!switch_channel_media_ready(session->channel)) {
-               if (switch_channel_direction(session->channel == SWITCH_CALL_DIRECTION_OUTBOUND) ||
+               if ((switch_channel_direction(session->channel) == SWITCH_CALL_DIRECTION_OUTBOUND) ||
                        switch_channel_pre_answer(session->channel) != SWITCH_STATUS_SUCCESS) {
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Cannot establish media. Media bug add failed.\n");
                        return SWITCH_STATUS_FALSE;