[FFmpeg-devel] [PATCH] udp: do not wait for data from the receiving thread.

Nicolas George nicolas.george at normalesup.org
Wed Mar 14 22:54:59 CET 2012

Le quintidi 25 ventôse, an CCXX, Michael Niedermayer a écrit :
> is this documented somewhere ?

I do not think so, except in old mailing-lists messages, but it should.

At the very least, you can see it is the only way for retry_transfer_wrapper
to make any sense. Also, you can notice that ff_socket_nonblock(udp_fd, 1);
is called unconditionally if the socket is reading and never reverted.

> the patch is ok if it works

I tested with:

./ffmpeg_g -f v4l2 -s 160x120 -i /dev/video0 -vcodec mpeg4 -f mpegts \
./ffmpeg_g -f mpegts -i udp://localhost:1234 -f sdl -

and it works, and fixes interrupting the receiver if the sender has been

I will wait for Andrey to confirm it fixes the problem for him and then



  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120314/fb59a22c/attachment.asc>

More information about the ffmpeg-devel mailing list