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

This commit is contained in:
Stefan Seyfried
2011-02-05 11:52:14 +01:00
parent ec4a615036
commit 0b487dfcab
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);