Changeset 85faf5c580984877c07392b099d1cd4181c11512

Show
Ignore:
Timestamp:
05/19/07 23:44:01 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1179611041 +0000
git-parent:

[7b0773e690a9c1388f4cfbe7c8fa3fa43a76e54c]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1179611041 +0000
Message:

Same as previous commit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/voutqt.m

    r75a6568 r85faf5c  
    147147        p_vout->p_sys->b_embedded = VLC_FALSE; 
    148148 
    149     p_vout->p_sys->b_cpu_has_simd = (p_vout->p_libvlc_global->i_cpu & CPU_CAPABILITY_ALTIVEC) 
    150                                   | (p_vout->p_libvlc_global->i_cpu & CPU_CAPABILITY_MMXEXT); 
     149    p_vout->p_sys->b_cpu_has_simd = 
     150        vlc_CPU() & (CPU_CAPABILITY_ALTIVEC|CPU_CAPABILITY_MMXEXT); 
    151151    msg_Dbg( p_vout, "we do%s have SIMD enabled CPU", p_vout->p_sys->b_cpu_has_simd ? "" : "n't" ); 
    152152     
  • modules/gui/pda/pda.c

    rd3fe7f2 r85faf5c  
    327327         * access keyboard events, a 100ms delay is a good compromise */ 
    328328        gdk_threads_leave(); 
    329         if (p_intf->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) 
     329        if (vlc_CPU() & CPU_CAPABILITY_FPU) 
    330330            msleep( INTF_IDLE_SLEEP ); 
    331331        else 
     
    337337    /* Sleep to avoid using all CPU - since some interfaces needs to access 
    338338     * keyboard events, a 1000ms delay is a good compromise */ 
    339     if (p_intf->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) 
     339    if (vlc_CPU() & CPU_CAPABILITY_FPU) 
    340340        i_dummy = gtk_timeout_add( INTF_IDLE_SLEEP / 1000, (GtkFunction)Manage, p_intf ); 
    341341    else 
     
    448448            i_length = var_GetTime( p_intf->p_sys->p_input, "length" ); 
    449449 
    450             if (p_intf->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) 
     450            if (vlc_CPU() & CPU_CAPABILITY_FPU) 
    451451            { 
    452452                /* Manage the slider for CPU_CAPABILITY_FPU hardware */ 
  • src/audio_output/output.c

    r49cafbc r85faf5c  
    176176        /* Non-S/PDIF mixer only deals with float32 or fixed32. */ 
    177177        p_aout->mixer.mixer.i_format 
    178                      = (p_aout->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) ? 
     178                     = (vlc_CPU() & CPU_CAPABILITY_FPU) ? 
    179179                        VLC_FOURCC('f','l','3','2') : 
    180180                        VLC_FOURCC('f','i','3','2'); 
  • src/modules/modules.c

    rd57b277 r85faf5c  
    7777 
    7878#include "modules/configuration.h" 
     79#include "libvlc.h" 
    7980 
    8081#include "vlc_interface.h" 
     
    482483    p_list = malloc( p_all->i_count * sizeof( module_list_t ) ); 
    483484    p_first = NULL; 
     485    unsigned i_cpu = vlc_CPU(); 
    484486 
    485487    /* Parse the module list for capabilities and probe each of them */ 
     
    499501 
    500502        /* Test if we have the required CPU */ 
    501         if( (p_module->i_cpu & p_this->p_libvlc_global->i_cpu) != p_module->i_cpu ) 
     503        if( (p_module->i_cpu & i_cpu) != p_module->i_cpu ) 
    502504        { 
    503505            continue;