]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] native tap fix (pass the copy of the frame to switch_core_session_write_frame...
authorDragos Oancea <dragos@signalwire.com>
Wed, 16 Sep 2020 21:20:17 +0000 (00:20 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 16 Mar 2021 21:29:17 +0000 (00:29 +0300)
src/switch_ivr_async.c

index 621836de0088112cc75e099e9d5f70d9cc3c25b4..a6972e847c22e1f1a9e068807f3700464ce5ebc8 100644 (file)
@@ -2084,7 +2084,7 @@ static switch_bool_t eavesdrop_callback(switch_media_bug_t *bug, void *user_data
                
                memcpy(frame.data, nframe->data, nframe->datalen);
 
-               if (switch_core_session_write_frame(ep->eavesdropper, nframe, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) {
+               if (switch_core_session_write_frame(ep->eavesdropper, &frame, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) {
                        return SWITCH_FALSE;
                }
        }