From a41c064cabf39c5caee6103954e18da243a9d8b4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 31 Jul 2015 00:14:22 -0700 Subject: [PATCH] Fix for the fix :/ --- limelight-common/AudioStream.c | 4 ++-- limelight-common/VideoStream.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/limelight-common/AudioStream.c b/limelight-common/AudioStream.c index 30ae434..39db302 100644 --- a/limelight-common/AudioStream.c +++ b/limelight-common/AudioStream.c @@ -189,8 +189,6 @@ static void DecoderThreadProc(void* context) { } void stopAudioStream(void) { - AudioCallbacks.cleanup(); - PltInterruptThread(&udpPingThread); PltInterruptThread(&receiveThread); PltInterruptThread(&decoderThread); @@ -207,6 +205,8 @@ void stopAudioStream(void) { PltCloseThread(&udpPingThread); PltCloseThread(&receiveThread); PltCloseThread(&decoderThread); + + AudioCallbacks.cleanup(); } int startAudioStream(void) { diff --git a/limelight-common/VideoStream.c b/limelight-common/VideoStream.c index 0c9af3a..9172858 100644 --- a/limelight-common/VideoStream.c +++ b/limelight-common/VideoStream.c @@ -148,8 +148,6 @@ int readFirstFrame(void) { /* Terminate the video stream */ void stopVideoStream(void) { - VideoCallbacks.cleanup(); - PltInterruptThread(&udpPingThread); PltInterruptThread(&receiveThread); PltInterruptThread(&decoderThread); @@ -170,6 +168,8 @@ void stopVideoStream(void) { PltCloseThread(&udpPingThread); PltCloseThread(&receiveThread); PltCloseThread(&decoderThread); + + VideoCallbacks.cleanup(); } /* Start the video stream */