[FFmpeg-user] avformat_find_stream_info broken recently with multiple threads?
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Jan 7 11:24:13 CET 2013
Hi!
Dennis Volodomanov <volodomanov <at> gmail.com> writes:
> > Could you post the config.log output beginning with
> > "check_func pthread_create" undtil "check_lib math.h"?
>
> I don't have "check_func pthread_create" anymore in the config.log
Sorry, this was my fault, you posted the correct output, thank you!
New try follows, the question is still if pthread detection
fails without the --extra-cflags but succeeds if you add them.
Please test, Carl Eugen
diff --git a/configure b/configure
index 89e076f..1f86e63 100755
--- a/configure
+++ b/configure
@@ -3769,17 +3769,22 @@ fi
# do this before the optional library checks as some of them require pthreads
if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
enable pthreads
- if check_func pthread_create; then
+ if check_code ld pthread.h "pthread_create(NULL, NULL, NULL, NULL)" \
+ cc; then
:
- elif check_func pthread_create -pthread; then
+ elif check_code ld pthread.h "pthread_create(NULL, NULL, NULL, NULL)" \
+ cc -pthread; then
add_cflags -pthread
add_extralibs -pthread
- elif check_func pthread_create -pthreads; then
+ elif check_code ld pthread.h "pthread_create(NULL, NULL, NULL, NULL)" \
+ cc -pthreads; then
add_cflags -pthreads
add_extralibs -pthreads
- elif check_func pthread_create -lpthreadGC2; then
+ elif check_code ld pthread.h "pthread_create(NULL, NULL, NULL, NULL)" \
+ cc -lpthreadGC2; then
add_extralibs -lpthreadGC2
- elif ! check_lib pthread.h pthread_create -lpthread; then
+ elif ! check_code ld pthread.h "pthread_create(NULL, NULL, NULL, NULL)" \
+ cc -lpthread; then
disable pthreads
fi
fi
More information about the ffmpeg-user
mailing list