diff options
author | phintuka <phintuka> | 2009-02-10 15:16:18 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-02-10 15:16:18 +0000 |
commit | c6cd8548a4c74076140ff961d7e73b9dbe97992f (patch) | |
tree | b7e8e4f634390755cf1a82e9c1ae3615b7648551 | |
parent | 615914586156901e4036b67b3e1709c63e7a160c (diff) | |
download | xineliboutput-c6cd8548a4c74076140ff961d7e73b9dbe97992f.tar.gz xineliboutput-c6cd8548a4c74076140ff961d7e73b9dbe97992f.tar.bz2 |
Accept MPEG-TS (33) in RTP payload type field
-rw-r--r-- | xine_input_vdr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 72977296..a6e52075 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.224 2009-02-08 09:11:17 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.225 2009-02-10 15:16:18 phintuka Exp $ * */ @@ -4048,7 +4048,8 @@ static int vdr_plugin_read_net_udp(vdr_input_plugin_t *this) /* check if RTP header is valid. If not, assume UDP without RTP. */ rtp_pkt = (stream_rtp_header_impl_t*)read_buffer->mem; if(rtp_pkt->rtp_hdr.raw[0] == (RTP_VERSION_BYTE | RTP_HDREXT_BIT) && - rtp_pkt->rtp_hdr.raw[1] == RTP_PAYLOAD_TYPE && + ( rtp_pkt->rtp_hdr.raw[1] == RTP_PAYLOAD_TYPE_PES || + rtp_pkt->rtp_hdr.raw[1] == RTP_PAYLOAD_TYPE_TS ) && rtp_pkt->hdr_ext.hdr.size == htons(RTP_HEADER_EXT_X_SIZE) && rtp_pkt->hdr_ext.hdr.type == htons(RTP_HEADER_EXT_X_TYPE)) { |