summaryrefslogtreecommitdiff
path: root/src/encoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoder.h')
-rw-r--r--src/encoder.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/encoder.h b/src/encoder.h
index d517ff5..1b459b9 100644
--- a/src/encoder.h
+++ b/src/encoder.h
@@ -23,6 +23,8 @@
#ifndef __RTVIDEOREC_ENCODER_H
#define __RTVIDEOREC_ENCODER_H
+#include "error.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -36,13 +38,15 @@
#include "thread.h"
#include <dvframe.h>
-#define VIDEO_BUFFER_SIZE (1024*1024) /* FIXME: One size fits all... */
+// FIXME: One size fits all...
+#define VIDEO_BUFFER_SIZE (1024*1024)
class Encoder : public Thread {
- public:
- Encoder(const char *gip,
+public:
+ Encoder(Error* err,
+ const char *gip,
const int gport,
sem_t *gsem,
Queue<DVFrame> *gqueue,
@@ -66,7 +70,9 @@ class Encoder : public Thread {
pthread_mutex_t *mutex;
volatile int *running;
- private:
+private:
+ Error *errobj;
+
int port;
char ip[32];
char cpr[32];