libtriple: add measure mode to cDemux to fix streaminfo

since the TD drivers apparently only allow each PID to be captured
once, cheat and implement the measure mode for streaminfo with
special ioctls. now streaminfo no longer breaks recordings
This commit is contained in:
Stefan Seyfried
2011-11-05 23:11:18 +01:00
parent b32df67a60
commit 2054a78b99
2 changed files with 90 additions and 10 deletions

View File

@@ -4,6 +4,7 @@
#include <cstdlib>
#include <vector>
extern "C" {
#include <inttypes.h>
#include <sys/ioctl.h>
#include <hardware/xp/xp_osd_user.h>
}
@@ -36,6 +37,8 @@ class cDemux
int num;
int fd;
int buffersize;
bool measure;
uint64_t last_measure, last_data;
DMX_CHANNEL_TYPE dmx_type;
std::vector<pes_pids> pesfds;
public: