]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3681 --resolve -- contact consulting@freeswitch.org for a support contract and...
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 9 Nov 2011 14:55:35 +0000 (08:55 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 9 Nov 2011 14:55:35 +0000 (08:55 -0600)
src/mod/endpoints/mod_rtmp/mod_rtmp.c
src/mod/endpoints/mod_rtmp/rtmp.c

index 45daf7bfeaeba9fff5f203004bf451e04f21a858..ae3b3a6279f9a936669fc9742172856691dc8a5e 100644 (file)
@@ -515,13 +515,13 @@ switch_status_t rtmp_receive_message(switch_core_session_t *session, switch_core
                        const char *name = msg->string_array_arg[0], *number = msg->string_array_arg[1];
                        char *arg = NULL;
                        char *argv[2] = { 0 };
-                       int argc;
+                       //int argc;
 
                        if (zstr(name) && !zstr(msg->string_arg)) {
                                arg = strdup(msg->string_arg);
                                switch_assert(arg);
 
-                               argc = switch_separate_string(arg, '|', argv, (sizeof(argv) / sizeof(argv[0])));
+                               switch_separate_string(arg, '|', argv, (sizeof(argv) / sizeof(argv[0])));
                                name = argv[0];
                                number = argv[1];
 
index cb104c390813583d454ec687f789e59cbbc96406..24900a408c74d5175c441509f134ff51b87ff58b 100644 (file)
@@ -639,7 +639,7 @@ switch_status_t rtmp_send_message(rtmp_session_t *rsession, uint8_t amfnumber, u
        }
 end:
        switch_mutex_unlock(rsession->socket_mutex);
-       return SWITCH_STATUS_SUCCESS;
+       return status;
 }
 
 /* Returns SWITCH_STATUS_SUCCESS of the connection is still active or SWITCH_STATUS_FALSE to tear it down */