- /*
- * Open audio device and start aout thread
- */
- if( p_main->b_audio )
- {
- p_main->p_aout = aout_CreateThread( NULL );
- if( p_main->p_aout == NULL )
- {
- /* On error during audio initialization, switch off audio */
- intf_ErrMsg( "aout error: audio initialization failed,"
- " audio is deactivated" );
- p_main->b_audio = 0;
- }
- }
-
- /*
- * Open video device and start vout thread
- */
- if( p_main->b_video )
- {
- p_main->p_vout = vout_CreateThread( NULL );
- if( p_main->p_vout == NULL )
- {
- /* On error during video initialization, switch off video */
- intf_ErrMsg( "vout error: video initialization failed,"
- " video is deactivated" );
- p_main->b_video = 0;
- }
- }
-
- /* Flush messages before entering the main loop */
- intf_FlushMsg();
-