]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix trivial vs2010 build errors
authorJeff Lenk <jeff@jefflenk.com>
Fri, 3 Oct 2014 00:47:05 +0000 (19:47 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 3 Oct 2014 00:47:05 +0000 (19:47 -0500)
src/switch_core_media.c
src/switch_stfu.c

index 0f38cff75b1319ef396f27fd3083d35fd8ab8166..730799a5dd2309bfad1cf87c5b0a869c82d72fc2 100644 (file)
@@ -8761,7 +8761,7 @@ SWITCH_DECLARE (void) switch_core_media_recover_session(switch_core_session_t *s
        }
 
        if ((tmp = switch_channel_get_variable(session->channel, "rtp_use_pt"))) {
-               a_engine->cur_payload_map->pt = a_engine->cur_payload_map->agreed_pt = smh->payload_space = (switch_payload_t)atoi(tmp);
+               a_engine->cur_payload_map->pt = a_engine->cur_payload_map->agreed_pt = (switch_payload_t)(smh->payload_space = atoi(tmp));
        }
 
        if ((tmp = switch_channel_get_variable(session->channel, "rtp_audio_recv_pt"))) {
index ee63a0301c5597d5e47235bea1f696286083f3ce..8dfd5e1e303c6e5d1589770e07bc544b3cbf2e48 100644 (file)
@@ -243,7 +243,7 @@ void stfu_n_debug(stfu_instance_t *i, const char *name)
             debug |= DBG_IN;
         }
 
-        if (debug) i->debug = debug;
+        if (debug) i->debug = (uint8_t)debug;
         else i->debug = 3;
 
         i->name = strdup(name);
@@ -276,7 +276,7 @@ stfu_status_t _stfu_n_resize(stfu_instance_t *i, int32_t qlen, int line)
 
     qlen = i->qlen + incr;
 
-    if (i->max_qlen && qlen > i->max_qlen) {
+    if (i->max_qlen && qlen > (int32_t)i->max_qlen) {
         if (i->qlen < i->max_qlen) {
             qlen = i->max_qlen;
         } else {
@@ -292,7 +292,7 @@ stfu_status_t _stfu_n_resize(stfu_instance_t *i, int32_t qlen, int line)
         stfu_n_resize_aqueue(&i->b_queue, qlen);
         s = stfu_n_resize_aqueue(&i->c_queue, qlen);
 
-        if (qlen > i->most_qlen) {
+        if (qlen > (int32_t)i->most_qlen) {
             i->most_qlen = qlen;
         }