diff --git a/libeplayer3/include/player.h b/libeplayer3/include/player.h index 0195722..7539d18 100644 --- a/libeplayer3/include/player.h +++ b/libeplayer3/include/player.h @@ -64,7 +64,7 @@ class Player { Manager manager; OpenThreads::Mutex chapterMutex; std::vector chapters; - pthread_t supervisorThread; + pthread_t playThread; bool abortRequested; bool isHttp; @@ -83,7 +83,7 @@ class Player { bool noprobe; /* hack: only minimal probing in av_find_stream_info */ void SetChapters(std::vector &Chapters); - static void* SupervisorThread(void*); + static void* playthread(void*); public: bool SwitchAudio(int pid); bool SwitchVideo(int pid); diff --git a/libeplayer3/player.cpp b/libeplayer3/player.cpp index cd6ce9b..0fd5751 100644 --- a/libeplayer3/player.cpp +++ b/libeplayer3/player.cpp @@ -40,7 +40,7 @@ Player::Player() hasThreadStarted = false; } -void *Player::SupervisorThread(void *arg) +void *Player::playthread(void *arg) { char threadname[17]; strncpy(threadname, __func__, sizeof(threadname)); @@ -121,14 +121,14 @@ bool Player::Play() Speed = 1; if (!hasThreadStarted) { - int err = pthread_create(&supervisorThread, NULL, SupervisorThread, this); + int err = pthread_create(&playThread, NULL, playthread, this); if (err) { fprintf(stderr, "%s %s %d: pthread_create: %d (%s)\n", __FILE__, __func__, __LINE__, err, strerror(err)); ret = false; isPlaying = false; } else { - pthread_detach(supervisorThread); + pthread_detach(playThread); } } }