summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>2008-06-18 17:57:06 +0100
committerSimon Farnsworth <simon.farnsworth@onelan.co.uk>2008-06-18 17:57:06 +0100
commitf24e088471a94dd37adf342c7634c468157e70ba (patch)
tree897dd77570e4e714f044200fbdb96b0ac5af9fae
parentfd26e45a60a7a7268910046e2f42d0344326f5f0 (diff)
downloadxine-lib-f24e088471a94dd37adf342c7634c468157e70ba.tar.gz
xine-lib-f24e088471a94dd37adf342c7634c468157e70ba.tar.bz2
input_dvb: Recognise new audio and video stream formats
Update input_dvb's PMT parser to match demux_ts's list of stream types. This is a stop-gap approach, to avoid doing major rewrites to input_dvb. Ideally, we'd fix the limitations in demux_ts that the comment above input_dvb's PMT parser alludes to, and just parse all the streams in the PMT to demux_ts. In the meantime, this enables use of input_dvb with things like Finnish DVB-T
-rw-r--r--src/input/input_dvb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c
index ddc1a0702..bc279b78b 100644
--- a/src/input/input_dvb.c
+++ b/src/input/input_dvb.c
@@ -1152,6 +1152,8 @@ static void parse_pmt(dvb_input_plugin_t *this, const unsigned char *buf, int se
switch (buf[0]) {
case 0x01:
case 0x02:
+ case 0x10:
+ case 0x1b:
if(!has_video) {
xprintf(this->stream->xine,XINE_VERBOSITY_LOG,"input_dvb: Adding VIDEO : PID 0x%04x\n", elementary_pid);
dvb_set_pidfilter(this, VIDFILTER, elementary_pid, DMX_PES_VIDEO, DMX_OUT_TS_TAP);
@@ -1161,6 +1163,8 @@ static void parse_pmt(dvb_input_plugin_t *this, const unsigned char *buf, int se
case 0x03:
case 0x04:
+ case 0x0f:
+ case 0x11:
if(!has_audio) {
xprintf(this->stream->xine,XINE_VERBOSITY_LOG,"input_dvb: Adding AUDIO : PID 0x%04x\n", elementary_pid);
dvb_set_pidfilter(this, AUDFILTER, elementary_pid, DMX_PES_AUDIO, DMX_OUT_TS_TAP);