summaryrefslogtreecommitdiff
path: root/src/player.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/player.h
parent13149f3c34de4cad937b1866778030d540674a06 (diff)
Added an error object for genereic error message handling.
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/player.h b/src/player.h
index e33c4e7..3e7efb6 100644
--- a/src/player.h
+++ b/src/player.h
@@ -26,6 +26,8 @@
#ifndef __RTVIDEOREC_PLAYER_H
#define __RTVIDEOREC_PLAYER_H
+#include "error.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <semaphore.h>
@@ -46,8 +48,9 @@
#define DISPLAYHEIGHT 576
class Player : public Thread {
- public:
- Player(volatile int *grunning,
+public:
+ Player(Error* err,
+ volatile int *grunning,
sem_t *gsem,
Queue<FFFrame> *gqueue,
pthread_mutex_t *gmutex);
@@ -58,7 +61,9 @@ class Player : public Thread {
void run();
- private:
+private:
+ Error *errobj;
+
void player();
volatile int *running;