mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
sync
Origin commit data
------------------
Branch: master
Commit: 669a91f8b7
Author: martii <m4rtii@gmx.de>
Date: 2012-10-12 (Fri, 12 Oct 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -67,7 +67,7 @@ void cRecord::Close(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool cRecord::Start(int fd, unsigned short vpid, unsigned short * apids, int numpids)
|
bool cRecord::Start(int fd, unsigned short vpid, unsigned short *apids, int numpids, uint64_t)
|
||||||
{
|
{
|
||||||
lt_info("%s: fd %d, vpid 0x%03x\n", __func__, fd, vpid);
|
lt_info("%s: fd %d, vpid 0x%03x\n", __func__, fd, vpid);
|
||||||
int i;
|
int i;
|
||||||
@@ -404,3 +404,13 @@ void cRecord::RecordThread()
|
|||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cRecord::GetStatus()
|
||||||
|
{
|
||||||
|
/* dummy for now */
|
||||||
|
return REC_STATUS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
void cRecord::ResetStatus()
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
@@ -4,6 +4,10 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include "dmx_lib.h"
|
#include "dmx_lib.h"
|
||||||
|
|
||||||
|
#define REC_STATUS_OK 0
|
||||||
|
#define REC_STATUS_SLOW 1
|
||||||
|
#define REC_STATUS_OVERFLOW 2
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
RECORD_RUNNING,
|
RECORD_RUNNING,
|
||||||
RECORD_STOPPED,
|
RECORD_STOPPED,
|
||||||
@@ -22,6 +26,7 @@ class cRecord
|
|||||||
pthread_t record_thread;
|
pthread_t record_thread;
|
||||||
bool record_thread_running;
|
bool record_thread_running;
|
||||||
record_state_t exit_flag;
|
record_state_t exit_flag;
|
||||||
|
int state;
|
||||||
#ifdef MARTII
|
#ifdef MARTII
|
||||||
int bufsize;
|
int bufsize;
|
||||||
int bufsize_dmx;
|
int bufsize_dmx;
|
||||||
@@ -38,9 +43,11 @@ class cRecord
|
|||||||
~cRecord();
|
~cRecord();
|
||||||
|
|
||||||
bool Open();
|
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 Stop(void);
|
||||||
bool AddPid(unsigned short pid);
|
bool AddPid(unsigned short pid);
|
||||||
|
int GetStatus();
|
||||||
|
void ResetStatus();
|
||||||
bool ChangePids(unsigned short vpid, unsigned short *apids, int numapids);
|
bool ChangePids(unsigned short vpid, unsigned short *apids, int numapids);
|
||||||
|
|
||||||
void RecordThread();
|
void RecordThread();
|
||||||
|
@@ -50,7 +50,7 @@ void cRecord::Close(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool cRecord::Start(int fd, unsigned short vpid, unsigned short * apids, int numpids)
|
bool cRecord::Start(int fd, unsigned short vpid, unsigned short *apids, int numpids, uint64_t)
|
||||||
{
|
{
|
||||||
lt_info("%s: fd %d, vpid 0x%03x\n", __func__, fd, vpid);
|
lt_info("%s: fd %d, vpid 0x%03x\n", __func__, fd, vpid);
|
||||||
int i;
|
int i;
|
||||||
@@ -259,3 +259,13 @@ void cRecord::RecordThread()
|
|||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cRecord::GetStatus()
|
||||||
|
{
|
||||||
|
/* dummy for now */
|
||||||
|
return REC_STATUS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
void cRecord::ResetStatus()
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
@@ -4,6 +4,10 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include "dmx_td.h"
|
#include "dmx_td.h"
|
||||||
|
|
||||||
|
#define REC_STATUS_OK 0
|
||||||
|
#define REC_STATUS_SLOW 1
|
||||||
|
#define REC_STATUS_OVERFLOW 2
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
RECORD_RUNNING,
|
RECORD_RUNNING,
|
||||||
RECORD_STOPPED,
|
RECORD_STOPPED,
|
||||||
@@ -21,14 +25,17 @@ class cRecord
|
|||||||
pthread_t record_thread;
|
pthread_t record_thread;
|
||||||
bool record_thread_running;
|
bool record_thread_running;
|
||||||
record_state_t exit_flag;
|
record_state_t exit_flag;
|
||||||
|
int state;
|
||||||
public:
|
public:
|
||||||
cRecord(int num = 0);
|
cRecord(int num = 0);
|
||||||
~cRecord();
|
~cRecord();
|
||||||
|
|
||||||
bool Open();
|
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 Stop(void);
|
||||||
bool AddPid(unsigned short pid);
|
bool AddPid(unsigned short pid);
|
||||||
|
int GetStatus();
|
||||||
|
void ResetStatus();
|
||||||
bool ChangePids(unsigned short vpid, unsigned short *apids, int numapids);
|
bool ChangePids(unsigned short vpid, unsigned short *apids, int numapids);
|
||||||
|
|
||||||
void RecordThread();
|
void RecordThread();
|
||||||
|
Reference in New Issue
Block a user