- /* Save the default vout */
- psz_default_vout = config_GetPsz( p_vout, "vout" );
-
- for( i_vout = 0; i_vout < p_vout->p_sys->i_clones; i_vout++ )
- {
- if( p_vout->p_sys->ppsz_vout_list == NULL
- || ( !strncmp( p_vout->p_sys->ppsz_vout_list[i_vout],
- "default", 8 ) ) )
- {
- p_vout->p_sys->pp_vout[i_vout] =
- vout_Create( p_vout, p_vout->render.i_width,
- p_vout->render.i_height, p_vout->render.i_chroma,
- p_vout->render.i_aspect );
- }
- else
- {
- /* create the appropriate vout instead of the default one */
- config_PutPsz( p_vout, "vout",
- p_vout->p_sys->ppsz_vout_list[i_vout] );
- p_vout->p_sys->pp_vout[i_vout] =
- vout_Create( p_vout, p_vout->render.i_width,
- p_vout->render.i_height, p_vout->render.i_chroma,
- p_vout->render.i_aspect );
-
- /* Reset the default value */
- config_PutPsz( p_vout, "vout", psz_default_vout );
- }
-
- if( p_vout->p_sys->pp_vout[ i_vout ] == NULL )
- {
- msg_Err( p_vout, "failed to clone %i vout threads",
- p_vout->p_sys->i_clones );
- p_vout->p_sys->i_clones = i_vout;
- if( psz_default_vout ) free( psz_default_vout );
- RemoveAllVout( p_vout );