mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +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
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:
@@ -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