[vlc-devel] commit: Corrected comparison in RTP port selection. While loop cleaned. ( Vicente Jimenez Aguilar )

git version control git at videolan.org
Tue Dec 9 20:19:21 CET 2008


vlc | branch: master | Vicente Jimenez Aguilar <googuy at gmail.com> | Wed Dec  3 01:02:51 2008 +0100| [539075e7fa434ac1c8a1316ec743d49167323d02] | committer: Rémi Denis-Courmont 

Corrected comparison in RTP port selection. While loop cleaned.

Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=539075e7fa434ac1c8a1316ec743d49167323d02
---

 modules/stream_out/rtp.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 30b34aa..da26a6c 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -848,6 +848,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
     sout_stream_id_t  *id;
     int               i_port, cscov = -1;
     char              *psz_sdp;
+    int               i_port_audio_option = var_GetInteger( p_stream, "port-audio" );
+    int               i_port_video_option = var_GetInteger( p_stream, "port-video" );
 
     if (0xffffffff == p_sys->payload_bitmap)
     {
@@ -879,12 +881,10 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
 
     while( i_port == 0 )
     {
-        if( p_sys->i_port != p_sys->i_port_audio
-         && p_sys->i_port != p_sys->i_port_video )
+        if( p_sys->i_port != i_port_audio_option
+         && p_sys->i_port != i_port_video_option )
         {
             i_port = p_sys->i_port;
-            p_sys->i_port += 2;
-            break;
         }
         p_sys->i_port += 2;
     }




More information about the vlc-devel mailing list