summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-02-10 15:15:04 +0000
committerphintuka <phintuka>2009-02-10 15:15:04 +0000
commit615914586156901e4036b67b3e1709c63e7a160c (patch)
tree1e19237e6a827ac6cfca68259f11604e143cf173 /tools
parent6c85b277842a76640d1883713f43ca53029580e4 (diff)
downloadxineliboutput-615914586156901e4036b67b3e1709c63e7a160c.tar.gz
xineliboutput-615914586156901e4036b67b3e1709c63e7a160c.tar.bz2
Added RTP_PAYLOAD_TYPE_PES and RTP_PAYLOAD_TYPE_TS
Set payload type to RTP header.
Diffstat (limited to 'tools')
-rw-r--r--tools/udp_buffer.h13
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);*/