mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 01:35:47 -04:00
dep/cubeb: Minimize and update to 54217bc
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
#include "cubeb/cubeb.h"
|
||||
#include "cubeb_mixer.h"
|
||||
#include "cubeb_strings.h"
|
||||
#include "cubeb_tracing.h"
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
@ -975,6 +976,8 @@ oss_io_routine(void * arg)
|
||||
cubeb_state new_state;
|
||||
int stopped;
|
||||
|
||||
CUBEB_REGISTER_THREAD("cubeb rendering thread");
|
||||
|
||||
do {
|
||||
pthread_mutex_lock(&s->mtx);
|
||||
if (s->destroying) {
|
||||
@ -1005,6 +1008,9 @@ oss_io_routine(void * arg)
|
||||
pthread_mutex_lock(&s->mtx);
|
||||
s->thread_created = false;
|
||||
pthread_mutex_unlock(&s->mtx);
|
||||
|
||||
CUBEB_UNREGISTER_THREAD();
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user