Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192760
b: refs/heads/master
c: ab6a21f
h: refs/heads/master
v: v3
  • Loading branch information
Abylay Ospan authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 9d9ea06 commit 7a91f66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4fa8e9e8586bc769b14069bbb663e2738abe7be
refs/heads/master: ab6a21f363d830e96e5839b5b1ef67d76f679e59
11 changes: 4 additions & 7 deletions trunk/drivers/media/dvb/dvb-core/dvb_demux.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static void dvb_dmx_swfilter_packet(struct dvb_demux *demux, const u8 *buf)
};
};

if (demux->cnt_storage) {
if (demux->cnt_storage && dvb_demux_tscheck) {
/* check pkt counter */
if (pid < MAX_PID) {
if (buf[1] & 0x80)
Expand Down Expand Up @@ -1248,12 +1248,9 @@ int dvb_dmx_init(struct dvb_demux *dvbdemux)
dvbdemux->feed[i].index = i;
}

if (dvb_demux_tscheck) {
dvbdemux->cnt_storage = vmalloc(MAX_PID + 1);

if (!dvbdemux->cnt_storage)
printk(KERN_WARNING "Couldn't allocate memory for TS/TEI check. Disabling it\n");
}
dvbdemux->cnt_storage = vmalloc(MAX_PID + 1);
if (!dvbdemux->cnt_storage)
printk(KERN_WARNING "Couldn't allocate memory for TS/TEI check. Disabling it\n");

INIT_LIST_HEAD(&dvbdemux->frontend_list);

Expand Down

0 comments on commit 7a91f66

Please sign in to comment.