mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
libeplayer3: rename player thread
Origin commit data
------------------
Branch: master
Commit: 1b926b4921
Author: martii <m4rtii@gmx.de>
Date: 2014-04-08 (Tue, 08 Apr 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user