Changeset 810e9accee5e25309f75cfcd9873a4543385865a

Show
Ignore:
Timestamp:
09/29/05 16:28:51 (3 years ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1128004131 +0000
git-parent:

[0e79f464081441bb979427207931010ad694691a]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1128004131 +0000
Message:

remove trailing whitespace

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/osd/osd.c

    ref8cc37 r810e9ac  
    6565    var_Get( p_this->p_libvlc, "osd_mutex", &lockval ); 
    6666    vlc_mutex_lock( lockval.p_address ); 
    67      
     67 
    6868    if( ( p_osd = vlc_object_find( p_this, VLC_OBJECT_OSDMENU, FIND_ANYWHERE ) ) == NULL ) 
    6969    { 
    7070        vlc_value_t val; 
    71          
     71 
    7272        msg_Dbg( p_this, "creating osd menu object" ); 
    7373        if( ( p_osd = vlc_object_create( p_this, VLC_OBJECT_OSDMENU ) ) == NULL ) 
     
    8181        if( osd_ConfigLoader( p_this, psz_file, &p_osd ) ) 
    8282            goto error; 
    83          
     83 
    8484        /* Setup default button (first button) */ 
    8585        p_osd->p_state->p_visible = p_osd->p_button; 
     
    9797        osd_UpdateState( p_osd->p_state, p_osd->i_x, p_osd->i_y, 
    9898                         p_osd->i_width, p_osd->i_height, NULL ); 
    99          
     99 
    100100        vlc_object_yield( p_osd ); 
    101101        vlc_object_attach( p_osd, p_this->p_vlc ); 
    102          
     102 
    103103        /* Signal when an update of OSD menu is needed */ 
    104104        var_Create( p_osd, "osd-menu-update", VLC_VAR_BOOL ); 
     
    107107        val.b_bool = VLC_FALSE; 
    108108        var_Set( p_osd, "osd-menu-update", val ); 
    109         var_Set( p_osd, "osd-menu-visible", val );         
     109        var_Set( p_osd, "osd-menu-visible", val ); 
    110110    } 
    111111    vlc_mutex_unlock( lockval.p_address ); 
    112112    return p_osd; 
    113      
     113 
    114114error: 
    115115    msg_Err( p_this, "creating osd menu object failed" ); 
    116116    vlc_mutex_unlock( lockval.p_address ); 
    117117    vlc_object_destroy( p_osd ); 
    118     return NULL;     
     118    return NULL; 
    119119} 
    120120 
     
    124124 
    125125    if( !p_osd || !p_this ) return; 
    126      
    127     var_Get( p_this->p_libvlc, "osd_mutex", &lockval ); 
    128     vlc_mutex_lock( lockval.p_address ); 
    129  
    130     vlc_object_release( p_osd );     
     126 
     127    var_Get( p_this->p_libvlc, "osd_mutex", &lockval ); 
     128    vlc_mutex_lock( lockval.p_address ); 
     129 
     130    vlc_object_release( p_osd ); 
    131131    if( p_osd->i_refcount > 0 ) 
    132132    { 
    133         vlc_mutex_unlock( lockval.p_address );         
    134         return; 
    135     }     
     133        vlc_mutex_unlock( lockval.p_address ); 
     134        return; 
     135    } 
    136136 
    137137    var_Destroy( p_osd, "osd-menu-visible" ); 
    138138    var_Destroy( p_osd, "osd-menu-update" ); 
    139      
     139 
    140140    osd_ConfigUnload( p_this, &p_osd ); 
    141141    vlc_object_detach( p_osd ); 
    142142    vlc_object_destroy( p_osd ); 
    143143    p_osd = NULL; 
    144      
    145     vlc_mutex_unlock( lockval.p_address );         
     144 
     145    vlc_mutex_unlock( lockval.p_address ); 
    146146} 
    147147 
     
    172172 
    173173    if( i_steps < 0 ) i_steps = 0; 
    174      
     174 
    175175    for( i=0; (i < i_steps) && (p_current != NULL); i++ ) 
    176     {     
     176    { 
    177177        p_temp = p_current->p_next; 
    178178        if( !p_temp ) return p_current; 
     
    198198    osd_button_t *p_button = NULL; 
    199199    vlc_value_t lockval; 
    200      
     200 
    201201    if( ( p_osd = vlc_object_find( p_this, VLC_OBJECT_OSDMENU, FIND_ANYWHERE ) ) == NULL ) 
    202202    { 
    203203        msg_Err( p_this, "osd_MenuNext failed" ); 
    204204        return; 
    205     }         
     205    } 
    206206 
    207207    var_Get( p_this->p_libvlc, "osd_mutex", &lockval ); 
     
    210210#if defined(OSD_MENU_DEBUG) 
    211211    msg_Dbg( p_osd, "menu on" ); 
    212 #endif             
     212#endif 
    213213    p_button = p_osd->p_state->p_visible; 
    214214    if( p_button ) 
    215     {                     
     215    { 
    216216        if( !p_button->b_range )  
    217217            p_button->p_current_state = osd_StateChange( p_button->p_states, OSD_BUTTON_UNSELECT ); 
    218218        p_osd->p_state->p_visible = p_osd->p_button; 
    219          
     219 
    220220        if( !p_osd->p_state->p_visible->b_range )  
    221221            p_osd->p_state->p_visible->p_current_state = 
    222222                osd_StateChange( p_osd->p_state->p_visible->p_states, OSD_BUTTON_SELECT ); 
    223          
     223 
    224224        osd_UpdateState( p_osd->p_state, 
    225225                p_osd->p_state->p_visible->i_x, p_osd->p_state->p_visible->i_y, 
    226226                p_osd->p_state->p_visible->p_current_state->p_pic->p[Y_PLANE].i_visible_pitch, 
    227227                p_osd->p_state->p_visible->p_current_state->p_pic->p[Y_PLANE].i_visible_lines, 
    228                 p_osd->p_state->p_visible->p_current_state->p_pic );                 
     228                p_osd->p_state->p_visible->p_current_state->p_pic ); 
    229229        osd_SetMenuUpdate( p_osd, VLC_TRUE ); 
    230230    } 
    231231    osd_SetMenuVisible( p_osd, VLC_TRUE ); 
    232      
    233     vlc_object_release( (vlc_object_t*) p_osd ); 
    234     vlc_mutex_unlock( lockval.p_address ); 
    235 } 
    236              
     232 
     233    vlc_object_release( (vlc_object_t*) p_osd ); 
     234    vlc_mutex_unlock( lockval.p_address ); 
     235} 
     236 
    237237void __osd_MenuHide( vlc_object_t *p_this ) 
    238238{ 
    239239    osd_menu_t *p_osd = NULL; 
    240240    vlc_value_t lockval; 
    241      
     241 
    242242    if( ( p_osd = vlc_object_find( p_this, VLC_OBJECT_OSDMENU, FIND_ANYWHERE ) ) == NULL ) 
    243243    { 
     
    245245        return; 
    246246    } 
    247          
     247 
    248248    var_Get( p_this->p_libvlc, "osd_mutex", &lockval ); 
    249249    vlc_mutex_lock( lockval.p_address ); 
     
    499499    osd_button_t *p_button = NULL; 
    500500    vlc_value_t lockval; 
    501 #if defined(OSD_MENU_DEBUG)     
     501#if defined(OSD_MENU_DEBUG) 
    502502    vlc_value_t val; 
    503503#endif 
    504          
     504 
    505505    if( ( p_osd = vlc_object_find( p_this, VLC_OBJECT_OSDMENU, FIND_ANYWHERE ) ) == NULL ) 
    506506    { 
     
    517517    var_Get( p_this->p_libvlc, "osd_mutex", &lockval ); 
    518518    vlc_mutex_lock( lockval.p_address ); 
    519      
     519 
    520520    p_button = p_osd->p_state->p_visible; 
    521521    if( p_button ) 
     
    527527                p_osd->p_state->p_visible = p_button->p_down; 
    528528        } 
    529          
     529 
    530530        if( p_button->b_range && p_osd->p_state->p_visible->b_range )  
    531531        { 
     
    546546                p_osd->p_state->p_visible->p_current_state->p_pic ); 
    547547        osd_SetMenuUpdate( p_osd, VLC_TRUE ); 
    548         /* If this is a range style action with associated images of only one state,  
     548        /* If this is a range style action with associated images of only one state, 
    549549         * then perform "menu select" on every menu navigation 
    550550         */