Skip to content

Commit

Permalink
- zapit/pat: change dmx handling; was named "small changes"
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther authored and vanhofen committed Jan 6, 2020
1 parent 52544a5 commit 55164d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/zapit/include/zapit/pat.h
Expand Up @@ -35,7 +35,6 @@ typedef std::pair<int,int> sidpmt_map_pair_t;
class CPat
{
private:
cDemux * dmx;
int dmxnum;
t_transport_stream_id ts_id;
bool parsed;
Expand Down
4 changes: 2 additions & 2 deletions src/zapit/src/pat.cpp
Expand Up @@ -48,7 +48,7 @@ bool CPat::Parse()
if(parsed)
return true;

dmx = new cDemux(dmxnum);
cDemux * dmx = new cDemux(dmxnum);
dmx->Open(DMX_PSI_CHANNEL);

/* buffer for program association table */
Expand All @@ -71,7 +71,7 @@ bool CPat::Parse()
do {
/* set filter for program association section */
/* read section */
if ((!dmx->sectionFilter(0, filter, mask, 5)) || (i = dmx->Read(buffer, PAT_SECTION_SIZE) < 0))
if ((!dmx->sectionFilter(0, filter, mask, 5)) || (dmx->Read(buffer, PAT_SECTION_SIZE) < 0))
{
delete dmx;
printf("[pat.cpp] dmx read failed\n");
Expand Down

0 comments on commit 55164d9

Please sign in to comment.