Changeset ed2a403f13bf8265d16ec5a721f8b27e07945e79

Show
Ignore:
Timestamp:
04/06/08 18:51:09 (4 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1212598269 +0300
git-parent:

[4d50cccae6bd757cfc3db77f515827a8c94dac21]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1212598220 +0300
Message:

Remove redumdant b_play code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_interface.h

    r26c146e red2a403  
    5555 
    5656    /* Thread properties and locks */ 
    57     bool          b_play; 
    5857    bool          b_should_run_on_first_thread; 
    5958 
  • modules/gui/macosx/intf.m

    r3527f69 red2a403  
    109109    p_intf->p_sys->o_sendport = [[NSPort port] retain]; 
    110110    p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); 
    111     p_intf->b_play = true; 
    112111    p_intf->pf_run = Run; 
    113112    p_intf->b_should_run_on_first_thread = true; 
     
    561560    p_playlist = pl_Yield( p_intf ); 
    562561 
    563     /* Check if we need to start playing */ 
    564     if( p_intf->b_play ) 
    565     { 
    566         playlist_Control( p_playlist, PLAYLIST_PLAY, false ); 
    567     } 
    568562    var_Create( p_playlist, "fullscreen", VLC_VAR_BOOL | VLC_VAR_DOINHERIT); 
    569563    val.b_bool = false; 
  • modules/gui/qt4/qt4.cpp

    r5e15258 red2a403  
    236236    p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); 
    237237 
    238     /* We support play on start */ 
    239     p_intf->b_play = true; 
    240  
    241238    return VLC_SUCCESS; 
    242239} 
     
    354351#endif  //ENABLE_NLS 
    355352 
    356     /* Start playing if needed */ 
    357     if( !p_intf->pf_show_dialog && p_intf->b_play ) 
    358     { 
    359         playlist_Control( THEPL, PLAYLIST_PLAY, false ); 
    360     } 
    361  
    362353    /* Explain to the core how to show a dialog :D */ 
    363354    p_intf->pf_show_dialog = ShowDialog; 
  • modules/gui/skins2/src/skin_main.cpp

    r3561b9b red2a403  
    164164    ThemeRepository::instance( p_intf ); 
    165165 
    166     // We support play on start 
    167     p_intf->b_play = true; 
    168  
    169166    return( VLC_SUCCESS ); 
    170167} 
     
    252249    // Get the instance of OSLoop 
    253250    OSLoop *loop = OSFactory::instance( p_intf )->getOSLoop(); 
    254  
    255     // Check if we need to start playing 
    256     if( p_intf->b_play ) 
    257     { 
    258         playlist_t *p_playlist = 
    259             (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, 
    260                                            FIND_ANYWHERE ); 
    261         if( p_playlist ) 
    262         { 
    263             playlist_Control( p_playlist, PLAYLIST_PLAY, false ); 
    264             vlc_object_release( p_playlist ); 
    265         } 
    266     } 
    267251 
    268252    // Enter the main event loop 
  • modules/gui/wince/wince.cpp

    r3561b9b red2a403  
    254254    vlc_thread_ready( p_intf ); 
    255255 
    256     /* Check if we need to start playing */ 
    257     if( !p_intf->pf_show_dialog && p_intf->b_play ) 
    258     { 
    259         playlist_t *p_playlist = 
    260             (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, 
    261                                            FIND_ANYWHERE ); 
    262         if( p_playlist ) 
    263         { 
    264             playlist_Play( p_playlist ); 
    265             vlc_object_release( p_playlist ); 
    266         } 
    267     } 
    268  
    269256    // Main message loop 
    270257    while( GetMessage( &msg, NULL, 0, 0 ) > 0 ) 
  • modules/gui/wxwidgets/wxwidgets.cpp

    r3561b9b red2a403  
    209209    p_intf->pf_show_dialog = NULL; 
    210210 
    211     /* We support play on start */ 
    212     p_intf->b_play = true; 
    213  
    214211    p_intf->p_sys->b_video_autosize = 
    215212        config_GetInt( p_intf, "wx-autosize" ); 
     
    390387    /* OK, initialization is over */ 
    391388    vlc_thread_ready( p_intf ); 
    392  
    393     /* Check if we need to start playing */ 
    394     if( !p_intf->pf_show_dialog && p_intf->b_play ) 
    395     { 
    396         playlist_t *p_playlist = 
    397             (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, 
    398                                            FIND_ANYWHERE ); 
    399         if( p_playlist ) 
    400         { 
    401             playlist_Control( p_playlist, PLAYLIST_PLAY, false ); 
    402             vlc_object_release( p_playlist ); 
    403         } 
    404     } 
    405389 
    406390    /* Return TRUE to tell program to continue (FALSE would terminate) */ 
  • src/interface/interface.c

    r2e40b4c red2a403  
    100100    p_intf->pf_release_window = NULL; 
    101101    p_intf->pf_control_window = NULL; 
    102     p_intf->b_play = false; 
    103102    p_intf->b_interaction = false; 
    104103    p_intf->b_should_run_on_first_thread = false; 
     
    225224        } 
    226225 
    227         /* Reset play on start status */ 
    228         p_intf->b_play = false; 
    229  
    230226        if( !p_intf->psz_switch_intf ) 
    231227        { 
  • src/libvlc.c

    ra62595b red2a403  
    11341134 
    11351135    /* Try to run the interface */ 
    1136     p_intf->b_play = false; /* TODO: remove b_play completely */ 
    11371136    i_err = intf_RunThread( p_intf ); 
    11381137    if( i_err )