Fix issues stopping and restarting streams
This commit is contained in:
parent
c8814fad0b
commit
88d8c8ede7
2 changed files with 5 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ static int stage = STAGE_NONE;
|
|||
static CONNECTION_LISTENER_CALLBACKS listenerCallbacks;
|
||||
static CONNECTION_LISTENER_CALLBACKS originalCallbacks;
|
||||
|
||||
static int alreadyTerminated = 0;
|
||||
static int alreadyTerminated;
|
||||
|
||||
static const char* stageNames[STAGE_MAX] = {
|
||||
"none",
|
||||
|
|
@ -144,6 +144,8 @@ int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PCONN
|
|||
listenerCallbacks.connectionTerminated = ClConnectionTerminated;
|
||||
listenerCallbacks.displayMessage = ClDisplayMessage;
|
||||
listenerCallbacks.displayTransientMessage = ClDisplayTransientMessage;
|
||||
|
||||
alreadyTerminated = 0;
|
||||
|
||||
Limelog("Initializing platform...");
|
||||
listenerCallbacks.stageStarting(STAGE_PLATFORM_INIT);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,8 @@ void destroyInputStream(void) {
|
|||
|
||||
if (oaesContext != NULL)
|
||||
{
|
||||
oaes_free(oaesContext);
|
||||
// FIXME: This crashes trying to free ctx->key
|
||||
// oaes_free(oaesContext);
|
||||
oaesContext = NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue