mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
Fix issues stopping and restarting streams
This commit is contained in:
parent
c8814fad0b
commit
88d8c8ede7
@ -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…
x
Reference in New Issue
Block a user