libtriple: remember the filedescriptor belonging to each pid in cDemux()

Origin commit data
------------------
Commit: bb78f6d4eb
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-02-05 (Sat, 05 Feb 2011)
This commit is contained in:
Stefan Seyfried
2011-02-05 11:52:14 +01:00
parent 2ffdc7e0d3
commit 387ded0096
2 changed files with 25 additions and 18 deletions

View File

@@ -23,6 +23,12 @@ typedef enum
DMX_PCR_ONLY_CHANNEL
} DMX_CHANNEL_TYPE;
typedef struct
{
int fd;
unsigned short pid;
} pes_pids;
class cDemux
{
private:
@@ -30,7 +36,7 @@ class cDemux
int fd;
int buffersize;
DMX_CHANNEL_TYPE dmx_type;
std::vector<int> pesfds;
std::vector<pes_pids> pesfds;
public:
bool Open(DMX_CHANNEL_TYPE pes_type, void * x = NULL, int y = 0);