summaryrefslogtreecommitdiff
path: root/src/encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoder.cc')
-rw-r--r--src/encoder.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/encoder.cc b/src/encoder.cc
index 3da7443..ee60a8f 100644
--- a/src/encoder.cc
+++ b/src/encoder.cc
@@ -24,13 +24,16 @@
#include <config.h>
#include "encoder.h"
-Encoder::Encoder(const char *gip,
+Encoder::Encoder(Error* err,
+ const char *gip,
const int gport,
sem_t *gsem,
Queue<DVFrame> *gqueue,
pthread_mutex_t *gmutex,
volatile int *grunning)
{
+ errobj = err;
+
sprintf(ip, gip);
port = gport;
memset(cpr, 0, sizeof(cpr));
@@ -54,9 +57,9 @@ Encoder::Encoder(const char *gip,
shoot_value = 0;
freeze_request = 0;
freeze_value = 0;
-
}
+
Encoder::~Encoder()
{
if(n) delete n;