[MPlayer-dev-eng] [PATCH] RTP support under Windows

Martin Decky deckm1am at ss1000.ms.mff.cuni.cz
Mon May 3 02:57:48 CEST 2004


Hello folks,

this is a patch which fixes the "Failed to connect to server" bug while 
using the non-LIVE.COM RTP implementation in Windows. All the important 
changes are within #ifdef HAVE_WINSOCK2 ... #endif, thus won't 
change/break anything on Linux or other platforms. So they can be 
accepted without fears.

There are actually two patches attached, the first one fixes just one 
case of the problem (when using an IP address in the URL, not a symbolic 
name), but is much shorter and gives a good image of the actual change.

The problem was caused by using the given multicast address as sin_addr 
for calling bind(). This is OK on Linux, but creates "Address not valid"
error on Windows. INADDR_ANY should be used instead.

Both patches are against current CVS.


M.D.
--
     ------------------------------------------------------------------
     Martin Decky
      School of Mathematics and Physics,
      Charles University in Prague,
      Czech Republic

     deckm1am at ss1000.ms.mff.cuni.cz                     martin at decky.cz
     http://www.ms.mff.cuni.cz/~deckm1am/           http://www.decky.cz
     ------------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: small-rtp-mingw.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040503/c0b1c457/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtp-mingw.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040503/c0b1c457/attachment.txt>


More information about the MPlayer-dev-eng mailing list