mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libtriple: add cRecord::AddPid
Origin commit data
------------------
Branch: master
Commit: 1ba4e043c2
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-10-01 (Sat, 01 Oct 2011)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -158,6 +158,22 @@ bool cRecord::ChangePids(unsigned short /*vpid*/, unsigned short *apids, int num
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool cRecord::AddPid(unsigned short pid)
|
||||||
|
{
|
||||||
|
std::vector<pes_pids> pids;
|
||||||
|
INFO("\n");
|
||||||
|
if (!dmx) {
|
||||||
|
INFO("DMX = NULL\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
pids = dmx->getPesPids();
|
||||||
|
for (std::vector<pes_pids>::const_iterator i = pids.begin(); i != pids.end(); ++i) {
|
||||||
|
if ((*i).pid == pid)
|
||||||
|
return true; /* or is it an error to try to add the same PID twice? */
|
||||||
|
}
|
||||||
|
return dmx->addPid(pid);
|
||||||
|
}
|
||||||
|
|
||||||
void cRecord::RecordThread()
|
void cRecord::RecordThread()
|
||||||
{
|
{
|
||||||
INFO("begin\n");
|
INFO("begin\n");
|
||||||
|
@@ -28,6 +28,7 @@ class cRecord
|
|||||||
bool Open();
|
bool Open();
|
||||||
bool Start(int fd, unsigned short vpid, unsigned short *apids, int numapids);
|
bool Start(int fd, unsigned short vpid, unsigned short *apids, int numapids);
|
||||||
bool Stop(void);
|
bool Stop(void);
|
||||||
|
bool AddPid(unsigned short pid);
|
||||||
bool ChangePids(unsigned short vpid, unsigned short *apids, int numapids);
|
bool ChangePids(unsigned short vpid, unsigned short *apids, int numapids);
|
||||||
|
|
||||||
void RecordThread();
|
void RecordThread();
|
||||||
|
Reference in New Issue
Block a user