vlc_module_begin();
set_description( N_("DVB input with v4l2 support") );
- add_integer( "dvb-program", 0, NULL, PROGRAM_TEXT, PROGRAM_LONGTEXT,
VLC_FALSE );
add_integer( "dvb-adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT,
VLC_FALSE );
return( -1 );
}
- var_Create( p_input, "dvb-program", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
var_Create( p_input, "dvb-adapter", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
var_Create( p_input, "dvb-device", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
var_Create( p_input, "dvb-frequency", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
{
int i_program;
unsigned int i;
- var_Get( p_input, "dvb-program", &val );
+ var_Get( p_input, "program", &val );
i_program = val.i_int;
/* FIXME : this is not demux2-compatible */
/* Only set a filter on the selected program : some boards
* (read: Dreambox) only have 8 filters, so you don't want to
* spend them on unwanted PMTs. --Meuuh */
- msg_Err(p_input, "Meuuh %d %d %d", p_input->stream.pp_programs[i]->i_number, p_input->stream.pp_programs[i]->pp_es[0]->i_id, i_program);
if ( !i_program
|| p_input->stream.pp_programs[i]->i_number == i_program )
{
add_string( "ts-out", NULL, NULL, "fast udp streaming", "send TS to specific ip:port by udp (you must know what you are doing)", VLC_TRUE );
add_integer( "ts-out-mtu", 1500, NULL, "MTU for out mode", "MTU for out mode", VLC_TRUE );
add_string( "ts-csa-ck", NULL, NULL, "CSA ck", "CSA ck", VLC_TRUE );
+ add_bool( "ts-silent", 0, NULL, "Silent mode", "do not complain on encrypted PES", VLC_TRUE );
set_capability( "demux2", 10 );
set_callbacks( Open, Close );
add_shortcut( "ts2" );
/* */
vlc_bool_t b_es_id_pid;
csa_t *csa;
+ vlc_bool_t b_silent;
vlc_bool_t b_udp_out;
int fd; /* udp socket */
free( val.psz_string );
}
+ var_Create( p_demux, "ts-silent", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
+ var_Get( p_demux, "ts-silent", &val );
+ p_sys->b_silent = val.b_bool;
return VLC_SUCCESS;
}
if( header[0] != 0 || header[1] != 0 || header[2] != 1 )
{
- msg_Warn( p_demux, "invalid header [0x%x:%x:%x:%x]",
- header[0], header[1],header[2],header[3] );
+ if ( !p_demux->p_sys->b_silent )
+ msg_Warn( p_demux, "invalid header [0x%x:%x:%x:%x]", header[0],
+ header[1],header[2],header[3] );
block_ChainRelease( p_pes );
return;
}
var_Set( p_input, "intf-change", val );
/* Create a few object variables used for navigation in the interfaces */
- var_Create( p_input, "program", VLC_VAR_INTEGER | VLC_VAR_HASCHOICE );
+ var_Create( p_input, "program", VLC_VAR_INTEGER | VLC_VAR_HASCHOICE
+ | VLC_VAR_DOINHERIT );
text.psz_string = _("Program");
var_Change( p_input, "program", VLC_VAR_SETTEXT, &text, NULL );