ffmpeg: free_input_threads requires HAVE_PTHREADS
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Fri, 30 Jan 2015 13:09:02 +0000 (13:09 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 30 Jan 2015 13:47:08 +0000 (14:47 +0100)
Hide behind that macro to avoid warning on systems with
!HAVE_PTHREADS.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index b836448..29f61da 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -155,8 +155,9 @@ static struct termios oldtty;
 static int restore_tty;
 #endif
 
+#if HAVE_PTHREADS
 static void free_input_threads(void);
-
+#endif
 
 /* sub2video hack:
    Convert subtitles to video with alpha to insert them in filter graphs.