# HG changeset patch # User lu_zero # Date 1196199107 0 # Node ID 512f2958dc1bce7bcaf0e3909e4ccdcab27a8ae8 # Parent 5ff44f300c953179b5c88a18155b6c4131616c33 Enable -rtsp-port for nemesi diff -r 5ff44f300c95 -r 512f2958dc1b libmpdemux/demux_nemesi.c --- a/libmpdemux/demux_nemesi.c Tue Nov 27 21:17:20 2007 +0000 +++ b/libmpdemux/demux_nemesi.c Tue Nov 27 21:31:47 2007 +0000 @@ -25,7 +25,7 @@ int rtsp_transport_tcp = 0; int rtsp_transport_sctp = 0; -// extern int rtsp_port; +int rtsp_port = 0; typedef struct { char * mime; @@ -145,7 +145,7 @@ Nemesi_DemuxerStreamData * ndsd = calloc(1, sizeof(Nemesi_DemuxerStreamData)); memset(&hints,0,sizeof(hints)); -// if (rtsp_port) hints.first_rtp_port = rtsp_port; + if (rtsp_port) hints.first_rtp_port = rtsp_port; if (rtsp_transport_tcp) { hints.pref_rtsp_proto = TCP; hints.pref_rtp_proto = TCP; diff -r 5ff44f300c95 -r 512f2958dc1b stream/stream_nemesi.c --- a/stream/stream_nemesi.c Tue Nov 27 21:17:20 2007 +0000 +++ b/stream/stream_nemesi.c Tue Nov 27 21:31:47 2007 +0000 @@ -35,7 +35,6 @@ #include "tcp.h" extern int network_bandwidth; -int rtsp_port = 0; char *rtsp_destination = NULL; static int rtsp_streaming_seek(int fd, off_t pos,