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) {
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) {

View File

@ -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 */