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


Origin commit data
------------------
Commit: 2054a78b99
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-11-05 (Sat, 05 Nov 2011)
This commit is contained in:
Stefan Seyfried
2011-11-05 23:11:18 +01:00
parent f685392e46
commit 1eb3b3bb45
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: