[FFmpeg-trac] #2694(avformat:new): interrupt_callback not working

FFmpeg trac at avcodec.org
Sun Jun 23 09:35:51 CEST 2013


#2694: interrupt_callback not working
------------------------------------+------------------------------------
             Reporter:  sporn       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  important   |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  regression  |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by sporn):

 I've found this:

 https://github.com/FFmpeg/FFmpeg/commit/b6f435fbc87c024f8403fca69e6e6b98bccf93fa

 - committed on the 9th October. It looks like when adding the timeout
 AVOption they've broken the interrupt callback. If I do

 av_dict_set(&options, "timeout", "1000", 0);

 ...then the connection attempt will timeout after 1 second.

 This would also explain why it's working on linux as the default timeout
 (used when no timeout is specified) will be different to the default
 windows tcp timeout (which for whatever reason in this case seems to be
 indefinite).

 For me adding the timeout AVOption fixes my issue. It'd be good to figure
 out why the interrupt_callback is broken and get that fixed though. Seems
 it's either not being passed properly or is being reset somewhere along
 the way.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2694#comment:17>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list