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

Baptiste Coudurier baptiste.coudurier
Fri Sep 17 01:21:12 CEST 2010

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.

Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list