[vlc-devel] [PATCH] Corrected comparison in RTP port selection.

Vicente Jiménez googuy at gmail.com
Tue Dec 2 01:50:56 CET 2008


 * Corrected comparison in RTP port selection.
 * While loop cleaned.

The previous comparison against p_sys->i_port_audio and p_sys-> i_port_video
fail when audio or video port is previously assigned to an audio or video
ES. This set to cero p_sys->i_port_audio or p_sys->i_port_video so next time
comparison is against cero and not the original port-audio or port-video
stream option.
This patch correct this, copying options values access code in line 1310 of
the Del function.
Test case: configure RTP stream out with port=60000 and port-video=60000
with an input file with the first ES of video type.

Also the while loop is simplified.

¿Is this patch correct? I currently can't compile and test it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20081202/ac96a8be/attachment.html>


More information about the vlc-devel mailing list