X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=blobdiff_plain;f=src%2Flibvlc.c;h=425478160349e6330ad00b5a6093e715e53138b5;hp=c7c84de2addfd25408f3f7c47f35fc0834231bae;hb=145903d05b94462eaa309575e46c3cbafb853a42;hpb=fefa53d2f6d8f0b95774b325e2ef72ec22b46150 diff --git a/src/libvlc.c b/src/libvlc.c index c7c84de2ad..4254781603 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -727,9 +727,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, if( priv->b_color ) priv->b_color = config_GetInt( p_libvlc, "color" ) > 0; - if( !config_GetInt( p_libvlc, "fpu" ) ) - cpu_flags &= ~CPU_CAPABILITY_FPU; - char p_capabilities[200]; #define PRINT_CAPABILITY( capability, string ) \ if( vlc_CPU() & capability ) \ @@ -772,7 +769,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, #endif - PRINT_CAPABILITY( CPU_CAPABILITY_FPU, "FPU" ); +#if HAVE_FPU + strncat( p_capabilities, "FPU ", + sizeof(p_capabilities) - strlen( p_capabilities) ); + p_capabilities[sizeof(p_capabilities) - 1] = '\0'; +#endif + msg_Dbg( p_libvlc, "CPU has capabilities %s", p_capabilities ); /*