/* Don't decode PSI streams ! */
if( p_input->p_es[i_es_loop].b_psi )
{
- intf_ErrMsg("input_error: trying to decode PID %d which is the one of a PSI\n");
+ intf_ErrMsg("input_error: trying to decode PID %d which is the one of a PSI\n", i_current_id);
vlc_mutex_unlock( &p_input->es_lock );
return( -1 );
}
default:
/* That should never happen. */
- intf_DbgMsg("input error: unknown stream type (%d)\n",
+ intf_DbgMsg("input error: unknown stream type (0x%.2x)\n",
p_input->p_es[i_es_loop].i_type);
vlc_mutex_unlock( &p_input->es_lock );
return( -1 );
/* Don't decode PSI streams ! */
if( p_input->p_es[i_es_loop].b_psi )
{
- intf_ErrMsg("input_error: trying to decode PID %d which is the one of a PSI\n");
+ intf_ErrMsg("input_error: trying to decode PID %d which is the one of a PSI\n", i_current_id);
vlc_mutex_unlock( &p_input->es_lock );
return( -1 );
}
/* Spawn the decoder. */
switch( p_input->p_es[i_es_loop].i_type )
{
+ case AC3_AUDIO_ES:
+ /* Spawn ac3 thread */
+ if ( ((ac3dec_thread_t *)(p_input->p_es[i_es_loop].p_dec) =
+ ac3dec_CreateThread(p_input)) == NULL )
+ {
+ intf_ErrMsg( "Could not start ac3 decoder\n" );
+ vlc_mutex_unlock( &p_input->es_lock );
+ return( -1 );
+ }
+ break;
+
case MPEG1_AUDIO_ES:
case MPEG2_AUDIO_ES:
/* Spawn audio thread. */
default:
/* That should never happen. */
- intf_DbgMsg("input error: unknown stream type (%d)\n",
+ intf_DbgMsg("input error: unknown stream type (0x%.2x)\n",
p_input->p_es[i_es_loop].i_type);
vlc_mutex_unlock( &p_input->es_lock );
return( -1 );
/* Cancel the decoder. */
switch( p_input->pp_selected_es[i_selected_es_loop]->i_type )
{
+ case AC3_AUDIO_ES:
+ ac3dec_DestroyThread( (ac3dec_thread_t *)(p_input->pp_selected_es[i_selected_es_loop]->p_dec) );
+ break;
+
case MPEG1_AUDIO_ES:
case MPEG2_AUDIO_ES:
adec_DestroyThread( (adec_thread_t*)(p_input->pp_selected_es[i_selected_es_loop]->p_dec) );