Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92462
b: refs/heads/master
c: 4a24ce3
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Oberritter authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 6702086 commit 8848718
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 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: a9317abfba0850b006aed000e2acc4bee150410a
refs/heads/master: 4a24ce3a17ee713056db0a24cf558bd595211302
2 changes: 2 additions & 0 deletions trunk/drivers/media/dvb/dvb-core/demux.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ enum dmx_success {
#define TS_PAYLOAD_ONLY 2 /* in case TS_PACKET is set, only send the TS
payload (<=184 bytes per packet) to callback */
#define TS_DECODER 4 /* send stream to built-in decoder (if present) */
#define TS_DEMUX 8 /* in case TS_PACKET is set, send the TS to
the demux device, not to the dvr device */

/* PES type for filters which write to built-in decoder */
/* these should be kept identical to the types in dmx.h */
Expand Down
9 changes: 5 additions & 4 deletions trunk/drivers/media/dvb/dvb-core/dmxdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,12 @@ static int dvb_dmxdev_filter_start(struct dmxdev_filter *filter)
else
ts_type = 0;

if (otype == DMX_OUT_TS_TAP || otype == DMX_OUT_TSDEMUX_TAP)
if (otype == DMX_OUT_TS_TAP)
ts_type |= TS_PACKET;

if (otype == DMX_OUT_TAP)
ts_type |= TS_PAYLOAD_ONLY | TS_PACKET;
else if (otype == DMX_OUT_TSDEMUX_TAP)
ts_type |= TS_PACKET | TS_DEMUX;
else if (otype == DMX_OUT_TAP)
ts_type |= TS_PACKET | TS_DEMUX | TS_PAYLOAD_ONLY;

ret = dmxdev->demux->allocate_ts_feed(dmxdev->demux,
tsfeed,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/dvb/dvb-core/dvb_demux.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static inline void dvb_dmx_swfilter_packet_type(struct dvb_demux_feed *feed,
#define DVR_FEED(f) \
(((f)->type == DMX_TYPE_TS) && \
((f)->feed.ts.is_filtering) && \
(((f)->ts_type & (TS_PACKET|TS_PAYLOAD_ONLY)) == TS_PACKET))
(((f)->ts_type & (TS_PACKET | TS_DEMUX)) == TS_PACKET))

static void dvb_dmx_swfilter_packet(struct dvb_demux *demux, const u8 *buf)
{
Expand Down

0 comments on commit 8848718

Please sign in to comment.