[FFmpeg-trac] #11662(undetermined:new): ffplay does not detect when the remote side closes the connection

FFmpeg trac at avcodec.org
Tue Jul 8 12:40:51 EEST 2025


#11662: ffplay does not detect when the remote side closes the connection
-------------------------------------+-------------------------------------
             Reporter:  guest        |                     Type:  defect
               Status:  new          |                 Priority:  minor
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 When the remote side closes the TCP connection (sends a FIN), ffplay does
 not detect it properly. Although the thread handling the network input
 exits, the main process continues running and displaying elapsed time as
 if the connection were still active. This leads to a situation where
 ffplay does not stop even though the stream has ended on the remote side.

 How to reproduce:

 start ffplay and stop the server at remote end.

 {{{
 % ffplay http://
 ffplay version 2025-07-01-git-11d1b71c31-essentials_build-www.gyan.dev
 Copyright (c) 2003-2025 the FFmpeg developers
   built with gcc 15.1.0 (Rev4, Built by MSYS2 project)
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11662>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list