summaryrefslogtreecommitdiff
path: root/src/decoder.h
diff options
context:
space:
mode:
authordeva <deva>2005-03-26 10:32:50 +0000
committerdeva <deva>2005-03-26 10:32:50 +0000
commit63ac729b32331438a607ec5b8be046143c7592e6 (patch)
tree4f4606119fe178024ccd9b27a0e44757a572d3ad /src/decoder.h
parent13149f3c34de4cad937b1866778030d540674a06 (diff)
Added an error object for genereic error message handling.
Diffstat (limited to 'src/decoder.h')
-rw-r--r--src/decoder.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/decoder.h b/src/decoder.h
index ad323b1..846ac26 100644
--- a/src/decoder.h
+++ b/src/decoder.h
@@ -23,6 +23,8 @@
#ifndef __RTVIDEOREC_DECODER_H
#define __RTVIDEOREC_DECODER_H
+#include "error.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -38,8 +40,9 @@
#include <dvframe.h>
class Decoder : public Thread {
- public:
- Decoder(char *device,
+public:
+ Decoder(Error* err,
+ char *device,
int channel,
sem_t *gencode_sem,
sem_t *gplayer_sem,
@@ -59,6 +62,8 @@ class Decoder : public Thread {
volatile int *running;
private:
+ Error *errobj;
+
void decode();
};