[FFmpeg-devel] [PATCH] Make RTP work with IPv6 enabled v.2

Ronald S. Bultje rsbultje
Sun Oct 28 18:36:16 CET 2007


Hi,

On 10/28/07, Michael Niedermayer <michaelni at gmx.at> wrote:
>
> On Sun, Oct 28, 2007 at 12:18:54PM -0400, Ronald S. Bultje wrote:
> > On 10/28/07, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> > > 3 - ffmpeg-udp-connect_and_send.patch - replaces sendto() by connect()
> and
> > > send(), which makes it work for MacOSX, where for some reason sendto()
> fails
> > > with EINVAL (undocumented) for no obvious reason, where connect() and
> send()
> > > with the same parameters works just fine. recvfrom() stays the way it
> is
> > > because the man page suggests so.
> > >
> >
> > Attached is a better version.
> [...]
> > +printf("Set remote: %s\n", uri);
> >  #ifdef CONFIG_IPV6
> > -    return udp_ipv6_set_remote_url(h, uri);
> > +    int ret = udp_ipv6_set_remote_url(h, uri);
>
> hardly
> besides that you break stdout output, the int ret will break gcc 2.95


Oops, that was left from debugging... Better version attached.

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-udp-connect_and_send.patch
Type: application/octet-stream
Size: 2423 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071028/943c8f56/attachment.obj>



More information about the ffmpeg-devel mailing list