]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7262: #resolve #comment fix regression in native recording using record thread...
authorMike Jerris <mike@freeswitch.org>
Wed, 11 Feb 2015 16:58:51 +0000 (10:58 -0600)
committerBrian West <brian@freeswitch.org>
Wed, 11 Feb 2015 16:59:04 +0000 (10:59 -0600)
src/switch_ivr_async.c

index 60de27c73edb52c7660e88e2328ce5ece536bd37..0b58c11433b9980cf0ff7f057fdaf14ee47d24dc 100644 (file)
@@ -1183,7 +1183,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s
                {
                        const char *var = switch_channel_get_variable(channel, "RECORD_USE_THREAD");
 
-                       if (zstr(var) || switch_true(var)) {
+                       if (!rh->native && rh->fh && (zstr(var) || switch_true(var))) {
                                switch_threadattr_t *thd_attr = NULL;
                                switch_memory_pool_t *pool = switch_core_session_get_pool(session);
                                int sanity = 200;