- {
- case MPEG1_VIDEO_ES:
- case MPEG2_VIDEO_ES:
- intf_WarnMsg( 4, "Selecting ES %x",
- p_new_prg->pp_es[i_es_index]->i_id );
- input_SelectES( p_input,
- p_new_prg->pp_es[i_es_index] );
- break;
- case MPEG1_AUDIO_ES:
- case MPEG2_AUDIO_ES:
- i_audio_es += 1;
- if( i_audio_es == i_required_audio_es )
- {
- intf_WarnMsg( 4, "Selecting ES %x",
- p_new_prg->pp_es[i_es_index]->i_id );
- input_SelectES( p_input,
- p_new_prg->pp_es[i_es_index]);
- }
- break;
- case LPCM_AUDIO_ES :
- case AC3_AUDIO_ES :
- i_audio_es += 1;
- if( i_audio_es == i_required_audio_es )
- {
- intf_WarnMsg( 4, "Selecting ES %x",
- p_new_prg->pp_es[i_es_index]->i_id );
- input_SelectES( p_input,
- p_new_prg->pp_es[i_es_index] );
- }
- break;
- /* Not sure this one is fully specification-compliant */
- case DVD_SPU_ES :
- i_spu_es += 1;
- if( i_spu_es == i_required_spu_es )
- {
- intf_WarnMsg( 4, "Selecting ES %x",
- p_new_prg->pp_es[i_es_index]->i_id );
- input_SelectES( p_input,
- p_new_prg->pp_es[i_es_index] );
- }
- break;
- default :
- break;
- }
+ {
+ case VIDEO_ES:
+ msg_Dbg( p_input, "selecting ES %x",
+ p_new_prg->pp_es[i_es_index]->i_id );
+ input_SelectES( p_input, p_new_prg->pp_es[i_es_index] );
+ break;
+ case AUDIO_ES:
+ i_audio_es += 1;
+ if( i_audio_es <= i_required_audio_es )
+ {
+ msg_Dbg( p_input, "selecting ES %x",
+ p_new_prg->pp_es[i_es_index]->i_id );
+ input_SelectES( p_input, p_new_prg->pp_es[i_es_index]);
+ }
+ break;
+ /* Not sure this one is fully specification-compliant */
+ case SPU_ES :
+ i_spu_es += 1;
+ if( i_spu_es <= i_required_spu_es )
+ {
+ msg_Dbg( p_input, "selecting ES %x",
+ p_new_prg->pp_es[i_es_index]->i_id );
+ input_SelectES( p_input, p_new_prg->pp_es[i_es_index] );
+ }
+ break;
+ default :
+ msg_Dbg( p_input, "ES %x has unknown type",
+ p_new_prg->pp_es[i_es_index]->i_id );
+ break;
+ }