Revert "change libeplayer3 to own thread class"

This reverts commit 3f238feb60.


Origin commit data
------------------
Branch: master
Commit: b313db12a1
Author: max_10 <max_10@gmx.de>
Date: 2018-09-20 (Thu, 20 Sep 2018)



------------------
This commit was generated by Migit
This commit is contained in:
max_10
2018-09-20 17:18:35 +02:00
parent 09b8c49c8b
commit 9a0a03c733
8 changed files with 55 additions and 47 deletions

View File

@@ -26,7 +26,9 @@
#include <vector>
#include <map>
#include <scoped_lock.h>
#include <OpenThreads/ScopedLock>
#include <OpenThreads/Thread>
#include <OpenThreads/Condition>
extern "C" {
#include <libavutil/avutil.h>
@@ -46,7 +48,7 @@ class Input
friend int interrupt_cb(void *arg);
private:
Mutex mutex;
OpenThreads::Mutex mutex;
Track *videoTrack;
Track *audioTrack;

View File

@@ -26,7 +26,9 @@
#include <vector>
#include <map>
#include <scoped_lock.h>
#include <OpenThreads/ScopedLock>
#include <OpenThreads/Thread>
#include <OpenThreads/Condition>
extern "C" {
#include <libavutil/avutil.h>
@@ -64,7 +66,7 @@ class Manager
private:
Player *player;
Mutex mutex;
OpenThreads::Mutex mutex;
std::map<int,Track*> videoTracks, audioTracks, subtitleTracks, teletextTracks;
std::map<int,Program> Programs;
void addTrack(std::map<int,Track*> &tracks, Track &track);

View File

@@ -26,7 +26,9 @@
#include <vector>
#include <map>
#include <scoped_lock.h>
#include <OpenThreads/ScopedLock>
#include <OpenThreads/Thread>
#include <OpenThreads/Condition>
extern "C" {
#include <libavutil/avutil.h>
@@ -48,7 +50,7 @@ class Output
int videofd;
int audiofd;
Writer *videoWriter, *audioWriter;
Mutex audioMutex, videoMutex;
OpenThreads::Mutex audioMutex, videoMutex;
Track *audioTrack, *videoTrack;
Player *player;
public:

View File

@@ -21,7 +21,9 @@
#ifndef __PLAYER_H__
#define __PLAYER_H__
#include <scoped_lock.h>
#include <OpenThreads/ScopedLock>
#include <OpenThreads/Thread>
#include <OpenThreads/Condition>
extern "C" {
#include <libavutil/avutil.h>
@@ -61,7 +63,7 @@ class Player {
Input input;
Output output;
Manager manager;
Mutex chapterMutex;
OpenThreads::Mutex chapterMutex;
std::vector<Chapter> chapters;
pthread_t playThread;