BT, EMBEDDED, thread joining

Fix a few BT issues (detection & sink name)
End threads on any server missing for too long (except if server IP set
manually)
Still cannot end threads when BT active (works wit I2S)
Thread lokc-up still happens when switching tracks quickly
This commit is contained in:
philippe44
2019-06-30 23:29:34 -07:00
parent e492b57b3b
commit 83f9f3320e
9 changed files with 73 additions and 26 deletions

View File

@@ -234,7 +234,7 @@ void decode_close(void) {
}
running = false;
UNLOCK_D;
#if LINUX || OSX || FREEBSD
#if LINUX || OSX || FREEBSD || EMBEDDED
pthread_join(thread, NULL);
#endif
mutex_destroy(decode.mutex);