Fix for the fix :/

This commit is contained in:
Cameron Gutman 2015-07-31 00:14:22 -07:00
parent f95f152439
commit a41c064cab
2 changed files with 4 additions and 4 deletions

View File

@ -189,8 +189,6 @@ static void DecoderThreadProc(void* context) {
} }
void stopAudioStream(void) { void stopAudioStream(void) {
AudioCallbacks.cleanup();
PltInterruptThread(&udpPingThread); PltInterruptThread(&udpPingThread);
PltInterruptThread(&receiveThread); PltInterruptThread(&receiveThread);
PltInterruptThread(&decoderThread); PltInterruptThread(&decoderThread);
@ -207,6 +205,8 @@ void stopAudioStream(void) {
PltCloseThread(&udpPingThread); PltCloseThread(&udpPingThread);
PltCloseThread(&receiveThread); PltCloseThread(&receiveThread);
PltCloseThread(&decoderThread); PltCloseThread(&decoderThread);
AudioCallbacks.cleanup();
} }
int startAudioStream(void) { int startAudioStream(void) {

View File

@ -148,8 +148,6 @@ int readFirstFrame(void) {
/* Terminate the video stream */ /* Terminate the video stream */
void stopVideoStream(void) { void stopVideoStream(void) {
VideoCallbacks.cleanup();
PltInterruptThread(&udpPingThread); PltInterruptThread(&udpPingThread);
PltInterruptThread(&receiveThread); PltInterruptThread(&receiveThread);
PltInterruptThread(&decoderThread); PltInterruptThread(&decoderThread);
@ -170,6 +168,8 @@ void stopVideoStream(void) {
PltCloseThread(&udpPingThread); PltCloseThread(&udpPingThread);
PltCloseThread(&receiveThread); PltCloseThread(&receiveThread);
PltCloseThread(&decoderThread); PltCloseThread(&decoderThread);
VideoCallbacks.cleanup();
} }
/* Start the video stream */ /* Start the video stream */