Skip to content
Snippets Groups Projects
Commit 223e9f26 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#5884: temporary fix segfault in pjsip memory pool

parent 61f7f03e
Branches
No related tags found
No related merge requests found
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include "config.h" #include "config.h"
// #define LIBEBOOK_VERSION_230
/** /**
* Structure used to store search callback and data * Structure used to store search callback and data
*/ */
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
EchoSuppress::EchoSuppress(pj_pool_t *pool) EchoSuppress::EchoSuppress(pj_pool_t *pool)
{ {
/*
pj_status_t status; pj_status_t status;
...@@ -31,6 +33,7 @@ EchoSuppress::EchoSuppress(pj_pool_t *pool) ...@@ -31,6 +33,7 @@ EchoSuppress::EchoSuppress(pj_pool_t *pool)
if(status != PJ_SUCCESS) { if(status != PJ_SUCCESS) {
_error("EchoCancel: Error: Could not create echo canceller"); _error("EchoCancel: Error: Could not create echo canceller");
} }
*/
} }
EchoSuppress::~EchoSuppress() EchoSuppress::~EchoSuppress()
...@@ -44,6 +47,7 @@ void EchoSuppress::reset() ...@@ -44,6 +47,7 @@ void EchoSuppress::reset()
void EchoSuppress::putData (SFLDataFormat *inputData, int nbBytes) void EchoSuppress::putData (SFLDataFormat *inputData, int nbBytes)
{ {
/*
pj_status_t status; pj_status_t status;
status = pjmedia_echo_playback(echoState, reinterpret_cast<pj_int16_t *>(inputData)); status = pjmedia_echo_playback(echoState, reinterpret_cast<pj_int16_t *>(inputData));
...@@ -51,17 +55,19 @@ void EchoSuppress::putData (SFLDataFormat *inputData, int nbBytes) ...@@ -51,17 +55,19 @@ void EchoSuppress::putData (SFLDataFormat *inputData, int nbBytes)
if(status != PJ_SUCCESS) { if(status != PJ_SUCCESS) {
_warn("EchoCancel: Warning: Problem while putting input data"); _warn("EchoCancel: Warning: Problem while putting input data");
} }
*/
} }
int EchoSuppress::getData(SFLDataFormat *outputData) int EchoSuppress::getData(SFLDataFormat *outputData)
{ {
/*
pj_status_t status; pj_status_t status;
status = pjmedia_echo_capture(echoState, reinterpret_cast<pj_int16_t *>(outputData), 0); status = pjmedia_echo_capture(echoState, reinterpret_cast<pj_int16_t *>(outputData), 0);
if(status != PJ_SUCCESS) { if(status != PJ_SUCCESS) {
_warn("EchoCancel: Warning: Problem while getting output data"); _warn("EchoCancel: Warning: Problem while getting output data");
} }
*/
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment