[FFmpeg-trac] #1026(avformat:new): libavformat::av_read_frame does not return waiting for udp packets when interrupted
FFmpeg
trac at avcodec.org
Tue Feb 28 14:56:59 CET 2012
#1026: libavformat::av_read_frame does not return waiting for udp packets when
interrupted
-------------------------------------+-------------------------------------
Reporter: asif | Type: defect
Status: new | Priority: important
Component: avformat | Version: 0.10
Keywords: | Blocked By:
deadlock,interrupt | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Steps to reproduce:
1. Start receiving udp stream.
2. Stop the incoming udp stream transmitter.
3. udp.c::udp_read will wait for udp.c::circular_buffer_task at
pthread_cond_wait(&s->cond, &s->mutex);
4. Interrupt udp.c::circular_buffer_task by returning 1 from
interrupt_callback. Circular buffer will exit and signal udp_read as well.
But the return value is EINTR
5. udp.c::udp_read will return to avio.c::retry_transfer_wrapper. This
function is ignoring the error and will call udp_read again.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1026>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list