[vlc-devel] commit: RTP sout: use same port as RTP input by default ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Dec 3 17:42:54 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Dec 3 18:42:33 2008 +0200| [764332810076c074bcb72e9dd0f8b78987543647] | committer: Rémi Denis-Courmont
RTP sout: use same port as RTP input by default
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=764332810076c074bcb72e9dd0f8b78987543647
---
modules/stream_out/rtp.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 2c4e8ab..52ca4fc 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -188,11 +188,11 @@ vlc_module_begin ()
add_string( SOUT_CFG_PREFIX "proto", "udp", NULL, PROTO_TEXT,
PROTO_LONGTEXT, false );
change_string_list( ppsz_protos, ppsz_protocols, NULL );
- add_integer( SOUT_CFG_PREFIX "port", 50004, NULL, PORT_TEXT,
+ add_integer( SOUT_CFG_PREFIX "port", 5004, NULL, PORT_TEXT,
PORT_LONGTEXT, true );
- add_integer( SOUT_CFG_PREFIX "port-audio", 50000, NULL, PORT_AUDIO_TEXT,
+ add_integer( SOUT_CFG_PREFIX "port-audio", 0, NULL, PORT_AUDIO_TEXT,
PORT_AUDIO_LONGTEXT, true );
- add_integer( SOUT_CFG_PREFIX "port-video", 50002, NULL, PORT_VIDEO_TEXT,
+ add_integer( SOUT_CFG_PREFIX "port-video", 0, NULL, PORT_VIDEO_TEXT,
PORT_VIDEO_LONGTEXT, true );
add_integer( SOUT_CFG_PREFIX "ttl", -1, NULL, TTL_TEXT,
@@ -1623,7 +1623,14 @@ void rtp_packetize_common( sout_stream_id_t *id, block_t *out,
void rtp_packetize_send( sout_stream_id_t *id, block_t *out )
{
+ static block_t *dummy = NULL;
+ if (!dummy)
+ {
+ dummy = out;
+ return;
+ }
block_FifoPut( id->p_fifo, out );
+ block_FifoPut( id->p_fifo, dummy );
}
/**
More information about the vlc-devel
mailing list