[FFmpeg-trac] #4929(avformat:new): RTSP protocol not sending TEARDOWN packet

FFmpeg trac at avcodec.org
Sun Oct 18 21:43:37 CEST 2015

#4929: RTSP protocol not sending TEARDOWN packet
             Reporter:               |                    Owner:
  nadenislamarre                     |                   Status:  new
                 Type:  defect       |                Component:  avformat
             Priority:  normal       |               Resolution:
              Version:  git-master   |               Blocked By:
             Keywords:  rtsp         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |

Comment (by nadenislamarre):

 in the lowest network function, there is a test : "if
 (ff_check_interrupt(int_cb))" which make things not working
  i can : or remove this check, but i think that it could be usefull for
 something else, or
 add a parameter "force" to low network functions, but it touches the
 network.c of ffmpeg, so i guess you would not accept it easily
 the thing is that testing if the user requesting to quit in this function
 it not valid with the fact that rtsp protocol require network packet
 sending at the disconnection.

 Comment these 2 lines in libavformat/avio.c & libavformat/network.c fixes
 the problem :
         if (ff_check_interrupt(&h->interrupt_callback))
             return AVERROR_EXIT;

Ticket URL: <https://trac.ffmpeg.org/ticket/4929#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list