[FFmpeg-devel] [PATCH] Check for the isatty function

Michael Niedermayer michaelni
Tue Jul 14 17:08:09 CEST 2009


On Tue, Jul 14, 2009 at 01:39:23AM +0300, Martin Storsj? wrote:
> The attached patches check for the isatty function in configure, and 
> makes the code in ffmpeg.c that uses it conditional.
> 
> This reduces the amount of ugly hacks needed on WinCE.
[...]
> @@ -3978,8 +3978,10 @@ int main(int argc, char **argv)
>      avdevice_register_all();
>      av_register_all();
>  
> +#if HAVE_ISATTY
>      if(isatty(STDIN_FILENO))
>          url_set_interrupt_cb(decode_interrupt_cb);
> +#endif
>  
>      for(i=0; i<CODEC_TYPE_NB; i++){
>          avcodec_opts[i]= avcodec_alloc_context2(i);

ive no oppinion on this -> left for our win* mantainer

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090714/d378946d/attachment.pgp>



More information about the ffmpeg-devel mailing list