change libeplayer3 to own thread class

This commit is contained in:
smogm
2015-01-12 20:26:52 +01:00
parent 46166da4ec
commit 9ed0a0d244
8 changed files with 47 additions and 55 deletions

View File

@@ -370,7 +370,7 @@ bool Player::GetChapters(std::vector<int> &positions, std::vector<std::string> &
positions.clear();
titles.clear();
input.UpdateTracks();
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(chapterMutex);
ScopedLock m_lock(chapterMutex);
for (std::vector<Chapter>::iterator it = chapters.begin(); it != chapters.end(); ++it) {
positions.push_back(it->start/1000);
titles.push_back(it->title);
@@ -380,7 +380,7 @@ bool Player::GetChapters(std::vector<int> &positions, std::vector<std::string> &
void Player::SetChapters(std::vector<Chapter> &Chapters)
{
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(chapterMutex);
ScopedLock m_lock(chapterMutex);
chapters = Chapters;
}