- /* Initialize the output structure */
- p_vout->output.i_chroma = p_vout->render.i_chroma;
- p_vout->output.i_width = p_vout->render.i_width;
- p_vout->output.i_height = p_vout->render.i_height;
- p_vout->output.i_aspect = p_vout->render.i_aspect;
- p_vout->fmt_out = p_vout->fmt_in;
- fmt = p_vout->fmt_out;
-
- /* Try to open the real video output */
- msg_Dbg( p_vout, "spawning the real video outputs" );
-
- /* 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, &fmt );
- }
- 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, &fmt );
-
- /* 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;
- free( psz_default_vout );
- RemoveAllVout( p_vout );