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;
|
||||
|
||||
encoderOpen = false;
|
||||
delete[] internalBuffer;
|
||||
if (internalBuffer) {
|
||||
delete[] internalBuffer;
|
||||
internalBuffer = NULL;
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "Opus internalBuffer is NULL!\n");
|
||||
}
|
||||
|
||||
getSink()->close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue