summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/udp_pes_scheduler.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/udp_pes_scheduler.c b/tools/udp_pes_scheduler.c
index 14611afe..c9aa9f21 100644
--- a/tools/udp_pes_scheduler.c
+++ b/tools/udp_pes_scheduler.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: udp_pes_scheduler.c,v 1.36 2008-11-16 15:02:45 rofafor Exp $
+ * $Id: udp_pes_scheduler.c,v 1.37 2009-02-10 12:46:10 phintuka Exp $
*
*/
@@ -558,13 +558,15 @@ void cUdpScheduler::Send_SAP(bool Announce)
if(!local_addr)
return;
+ uint32_t payload_type = VDRVERSNUM > 10702 ? SDP_PAYLOAD_MPEG_TS : SDP_PAYLOAD_MPEG_PES;
const char *sdp_descr = vdr_sdp_description(ip,
- 2001,
- xc.listen_port,
- xc.remote_rtp_addr,
- m_ssrc,
- xc.remote_rtp_port,
- xc.remote_rtp_ttl);
+ 2001,
+ xc.listen_port,
+ xc.remote_rtp_addr,
+ payload_type,
+ m_ssrc,
+ xc.remote_rtp_port,
+ xc.remote_rtp_ttl);
if(!sdp_descr)
return;