possible fix for Opus crash on reconnect
This commit is contained in:
parent
0a8d66a9ba
commit
c1a801eaa5
|
@ -548,7 +548,13 @@ OpusLibEncoder :: close ( void ) throw ( Exception )
|
||||||
opusEncoder = NULL;
|
opusEncoder = NULL;
|
||||||
|
|
||||||
encoderOpen = false;
|
encoderOpen = false;
|
||||||
|
if (internalBuffer) {
|
||||||
delete[] internalBuffer;
|
delete[] internalBuffer;
|
||||||
|
internalBuffer = NULL;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fprintf(stderr, "Opus internalBuffer is NULL!\n");
|
||||||
|
}
|
||||||
|
|
||||||
getSink()->close();
|
getSink()->close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue