Revert "change libeplayer3 to own thread class"

This reverts commit 9ed0a0d244.
This commit is contained in:
max_10
2018-09-20 17:18:35 +02:00
committed by Thilo Graf
parent 89ab7c86dc
commit 10710b9b53
8 changed files with 55 additions and 47 deletions

View File

@@ -372,7 +372,7 @@ bool Player::GetChapters(std::vector<int> &positions, std::vector<std::string> &
positions.clear();
titles.clear();
input.UpdateTracks();
ScopedLock m_lock(chapterMutex);
OpenThreads::ScopedLock<OpenThreads::Mutex> 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);
@@ -382,7 +382,7 @@ bool Player::GetChapters(std::vector<int> &positions, std::vector<std::string> &
void Player::SetChapters(std::vector<Chapter> &Chapters)
{
ScopedLock m_lock(chapterMutex);
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(chapterMutex);
chapters = Chapters;
}