adapt cRecord API to coolstream changes

This commit is contained in:
Stefan Seyfried
2012-10-12 06:24:16 +02:00
parent 9f433f9dfa
commit c4422bcfbb
4 changed files with 38 additions and 4 deletions

View File

@@ -4,6 +4,10 @@
#include <pthread.h>
#include "dmx_lib.h"
#define REC_STATUS_OK 0
#define REC_STATUS_SLOW 1
#define REC_STATUS_OVERFLOW 2
typedef enum {
RECORD_RUNNING,
RECORD_STOPPED,
@@ -22,14 +26,17 @@ class cRecord
pthread_t record_thread;
bool record_thread_running;
record_state_t exit_flag;
int state;
public:
cRecord(int num = 0);
~cRecord();
bool Open();
bool Start(int fd, unsigned short vpid, unsigned short *apids, int numapids);
bool Start(int fd, unsigned short vpid, unsigned short *apids, int numapids, uint64_t ch = 0);
bool Stop(void);
bool AddPid(unsigned short pid);
int GetStatus();
void ResetStatus();
bool ChangePids(unsigned short vpid, unsigned short *apids, int numapids);
void RecordThread();