- 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 );
+ 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 );
+ }
+