mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user