diff options
Diffstat (limited to 'tools/udp_buffer.h')
-rw-r--r-- | tools/udp_buffer.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/udp_buffer.h b/tools/udp_buffer.h index 6284349a..25f8ca17 100644 --- a/tools/udp_buffer.h +++ b/tools/udp_buffer.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: udp_buffer.h,v 1.3 2006-12-14 12:30:25 phintuka Exp $ + * $Id: udp_buffer.h,v 1.4 2009-02-10 15:15:04 phintuka Exp $ * */ @@ -14,7 +14,7 @@ #include <stdint.h> #include "../xine_input_vdr_net.h" // frame headers - +#include "ts.h" #define UDP_BUFFER_SIZE 0x100 // 2^n #define UDP_BUFFER_MASK 0xff // 2^n - 1 @@ -109,7 +109,14 @@ class cUdpBackLog // RTP header header->rtp_hdr.raw[0] = RTP_VERSION_BYTE | RTP_HDREXT_BIT; - header->rtp_hdr.raw[1] = RTP_PAYLOAD_TYPE; +#if VDRVERSNUM >= 10701 + if (DATA_IS_TS(Data)) + header->rtp_hdr.raw[1] = RTP_PAYLOAD_TYPE_TS; + else + header->rtp_hdr.raw[1] = RTP_PAYLOAD_TYPE_PES; +#else + header->rtp_hdr.raw[1] = RTP_PAYLOAD_TYPE_PES; +#endif header->rtp_hdr.seq = htons(m_RtpSeqNo & 0xFFFF); /*header->rtp_hdr.ts = htonl((uint32_t)(RtpScr.Now() & 0xffffffff));*/ /*header->rtp_hdr.ssrc = htonl(m_ssrc);*/ |