[FFmpeg-devel] [PATCH] remove loop in udp_read

aviad rozenhek aviadr1
Fri Sep 17 22:54:39 CEST 2010


On Fri, Sep 17, 2010 at 01:21, Baptiste Coudurier <
baptiste.coudurier at gmail.com> wrote:

> On 09/16/2010 10:39 AM, aviad rozenhek wrote:
>
>> On Thu, Sep 16, 2010 at 12:09, Ronald S. Bultje<rsbultje at gmail.com>
>>  wrote:
>>
>>  Hi,
>>>
>>> On Thu, Sep 16, 2010 at 12:14 PM, aviad rozenhek<aviadr1 at gmail.com>
>>> wrote:
>>>
>>>> the file udp.c provides a very useful API for handling udp traffic,
>>>> specifically I use it for handling raw mpegts packets.
>>>> however the fact the udp_read blocks forever makes it less useful in
>>>> case
>>>>
>>> no
>>>
>>>> traffic comes in.
>>>>
>>>
>>> Have you looked at interrupt_cb?
>>>
>>> Ronald
>>>
>>>
>>>  interrupt_cb has the unfortunate property of killing all input in all
>> sockets and files together.
>> its a big no-no if i'm receiving more than one input concurrently.
>>
>
> Yes interrupt_cb should be made per context. Patch welcome.
>
>
I will have a patch suggesting a new interrupt_cb in a few days.
it would help to cancel specific input instead of all inputs together.
but obviously it would not constitute a proper way to do async input.



More information about the ffmpeg-devel mailing list