VLC_COMMON_MEMBERS
/* Thread properties and locks */
- bool b_play;
bool b_should_run_on_first_thread;
/* Specific interfaces */
p_intf->p_sys->o_sendport = [[NSPort port] retain];
p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
- p_intf->b_play = true;
p_intf->pf_run = Run;
p_intf->b_should_run_on_first_thread = true;
p_playlist = pl_Yield( p_intf );
- /* Check if we need to start playing */
- if( p_intf->b_play )
- {
- playlist_Control( p_playlist, PLAYLIST_PLAY, false );
- }
var_Create( p_playlist, "fullscreen", VLC_VAR_BOOL | VLC_VAR_DOINHERIT);
val.b_bool = false;
p_intf->p_sys->p_playlist = pl_Yield( p_intf );
p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
- /* We support play on start */
- p_intf->b_play = true;
-
return VLC_SUCCESS;
}
app->installTranslator( &qtTranslator );
#endif //ENABLE_NLS
- /* Start playing if needed */
- if( !p_intf->pf_show_dialog && p_intf->b_play )
- {
- playlist_Control( THEPL, PLAYLIST_PLAY, false );
- }
-
/* Explain to the core how to show a dialog :D */
p_intf->pf_show_dialog = ShowDialog;
Dialogs::instance( p_intf );
ThemeRepository::instance( p_intf );
- // We support play on start
- p_intf->b_play = true;
-
return( VLC_SUCCESS );
}
// Get the instance of OSLoop
OSLoop *loop = OSFactory::instance( p_intf )->getOSLoop();
- // Check if we need to start playing
- if( p_intf->b_play )
- {
- playlist_t *p_playlist =
- (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
- FIND_ANYWHERE );
- if( p_playlist )
- {
- playlist_Control( p_playlist, PLAYLIST_PLAY, false );
- vlc_object_release( p_playlist );
- }
- }
-
// Enter the main event loop
loop->run();
/* OK, initialization is over */
vlc_thread_ready( p_intf );
- /* Check if we need to start playing */
- if( !p_intf->pf_show_dialog && p_intf->b_play )
- {
- playlist_t *p_playlist =
- (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
- FIND_ANYWHERE );
- if( p_playlist )
- {
- playlist_Play( p_playlist );
- vlc_object_release( p_playlist );
- }
- }
-
// Main message loop
while( GetMessage( &msg, NULL, 0, 0 ) > 0 )
{
p_intf->pf_show_dialog = NULL;
- /* We support play on start */
- p_intf->b_play = true;
-
p_intf->p_sys->b_video_autosize =
config_GetInt( p_intf, "wx-autosize" );
/* OK, initialization is over */
vlc_thread_ready( p_intf );
- /* Check if we need to start playing */
- if( !p_intf->pf_show_dialog && p_intf->b_play )
- {
- playlist_t *p_playlist =
- (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
- FIND_ANYWHERE );
- if( p_playlist )
- {
- playlist_Control( p_playlist, PLAYLIST_PLAY, false );
- vlc_object_release( p_playlist );
- }
- }
-
/* Return TRUE to tell program to continue (FALSE would terminate) */
return TRUE;
}
p_intf->pf_request_window = NULL;
p_intf->pf_release_window = NULL;
p_intf->pf_control_window = NULL;
- p_intf->b_play = false;
p_intf->b_interaction = false;
p_intf->b_should_run_on_first_thread = false;
vlc_object_unlock( p_intf );
}
- /* Reset play on start status */
- p_intf->b_play = false;
-
if( !p_intf->psz_switch_intf )
{
break;
}
/* Try to run the interface */
- p_intf->b_play = false; /* TODO: remove b_play completely */
i_err = intf_RunThread( p_intf );
if( i_err )
{