[FFmpeg-devel] [PATCH] ffplay: Exit on ctrl-c.

Alexander Strasser eclipse7 at gmx.net
Wed Jan 11 22:29:32 CET 2012


yann.lepetitcorps at free.fr wrote:
> Selon Alexander Strasser <eclipse7 at gmx.net>:
> In this case, we can perhaps use something like this ?
> 
> 
>     static void signal_handler(int sig)
>     {
>         switch(sig)
>         [
>             case SIGTERM  :
>             case SIGKILL  :  exit(123); break;
>             ...
>             case SIGINT   :
>             default       : force_exit = 0; break;
>         }
>     }

  I am sorry this is still messed up. I also don't think that
approach will give any practical improvements while introducing
more complexity. I am fine with the current solution, Micheal's
initial patch, as is ffplay maintainer Marton.

  Just wanted to hear any opinions on the rather theoretical issue,
so thanks for taking part in the discussion.

  Alexander


More information about the ffmpeg-devel mailing list