[gst-devel] UDPSRC BUG

attaboy gerecke at gmail.com
Tue Sep 15 22:18:26 CEST 2009


I can confirm that udpsrc is broken on Windows and I'm willing to test fixes. 
I've just spent more time than I'd like to admit trying to get a multi-cast
receive working on Windows XP using this simple pipeline:

gst-launch udpsrc uri="udp://224.1.2.3:1234" ! fakesink

I tried the 0.10.15 udpsrc plugin with this patch
(https://forja.rediris.es/forum/message.php?msg_id=180551) and had no
success with failure on the bind.  I backed up to 0.10.8 (before IP6
support) and still had failure on the bind.  I hard coded the local address
to INADDR_ANY right before the bind and success!  

/*    if (src->multi_addr.imr_multiaddr.s_addr)
      src->myaddr.sin_addr.s_addr = src->multi_addr.imr_multiaddr.s_addr;
    else */
      src->myaddr.sin_addr.s_addr = INADDR_ANY;

I tried hardwiring INADDR_ANY with the patched 0.10.15 version and ran with
no crashes, but also received no data, so right now I'm back to 0.10.8.

Point me to some code/patches and I'll test on W2K3, XP and Windows 7.  I'm
building using the OSS build system as opposed to mingw, hopefully that's
not a problem.

Bill


Michael Smith-59 wrote:
> 
> On Tue, Sep 15, 2009 at 8:52 AM, Julien Isorce <julien.isorce at gmail.com>
> wrote:
>> Hi,
>>
>> Does this pipeline works: gst-launch-0.10.exe udpsrc port=200 ! fakesink
>> ?
>>
>> If not, try to compile the udp plugin with mingw
>>
>>>>Then I build the newest Trunk Version form the SVN. The result is the
>>>> same.
>>
>> if you are currently using VS.
>>
>> (with the current git, udpsink fails with this error (and compiled with
>> mingw)
>> WARN          multiudpsink
>> gstmultiudpsink.c:790:gst_multiudpsink_init_send:<udpsink0> error: Could
>> not
>> set TTL socket option (0): No error
> 
> I believe this patch makes multiudpsink work on windows:
>   https://bugzilla.gnome.org/show_bug.cgi?id=534243
> 
> Note that I'm still waiting for more windows testing (particularly on
> vista), and hopefully a code review from someone who knows this stuff.
> 
> udpsrc might also have similar issues, I'm not sure - I can fix these
> if people are willing to test the code and comment on that bug.
> 
> Mike
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 
> 

-- 
View this message in context: http://www.nabble.com/UDPSRC-BUG-tp25455747p25461052.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.





More information about the gstreamer-devel mailing list