summaryrefslogtreecommitdiff
path: root/src/mov_encoder_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mov_encoder_thread.h')
-rw-r--r--src/mov_encoder_thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mov_encoder_thread.h b/src/mov_encoder_thread.h
index 5684edf..e3fba27 100644
--- a/src/mov_encoder_thread.h
+++ b/src/mov_encoder_thread.h
@@ -37,6 +37,7 @@
using namespace std;
#include "mov_encoder.h"
+#include "audio_encoder.h"
#include "mov_encoder_writer.h"
#include "info.h"
@@ -53,20 +54,25 @@ private:
FrameVectorQueue *inputqueue;
FramePriorityQueue *video_outputqueue;
+ FramePriorityQueue *audio_inputqueue;
FramePriorityQueue *audio_outputqueue;
FrameVector *block;
//thread stuff
sem_t in_sem;
sem_t video_out_sem;
+ sem_t audio_in_sem;
sem_t audio_out_sem;
sem_t read_sem;
pthread_mutex_t input_mutex;
pthread_mutex_t video_output_mutex;
+ pthread_mutex_t audio_input_mutex;
pthread_mutex_t audio_output_mutex;
+ volatile bool movencodersrunning;
+
// Used for encoder switching
unsigned int frame_number;
@@ -75,6 +81,8 @@ private:
MovEncoderWriter *writer;
// pthread_t* writer_tid;
+ AudioEncoder* audioenc;
+
int threads;
vector<MovEncoder*> encs;
// vector<pthread_t*> tids;