[FFmpeg-devel] [PATCH] always enable reuse for reading multicast udp

aviad rozenhek aviadr1
Tue Oct 5 06:01:47 CEST 2010


On Thu, Sep 16, 2010 at 13:50, aviad rozenhek <aviadr1 at gmail.com> wrote:

> On Thu, Sep 16, 2010 at 04:51, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>
>> aviad rozenhek <aviadr1 <at> gmail.com> writes:
>>
>> > -    int len;
>> > +    int len, has_reuse_arg = 0;
>>
>> Being read-only, the new variable does not look useful.
>>
>>
> fixed by using it properly
>
> +        if (find_info_tag(buf, sizeof(buf), "reuse", p)) {
> +            s->reuse_socket = strtol(buf, NULL, 10);
> +            has_reuse_arg = 1;
> +        }
>

attached is the correct patch which IMHO addresses the comments made
earlier.
again the idea here is that reuse should be enabled by default for read-only
multicast udp, but it can be overriden by user.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enable_multicast_reuse_v4.diff
Type: text/x-patch
Size: 1568 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101005/bd16b301/attachment.bin>



More information about the ffmpeg-devel mailing list