- input_thread_t *p_input = (input_thread_t *)p_this;
- demux_sys_t *p_demux;
- vlc_value_t val;
- char *psz_name;
-
- /* Set the demux function */
- p_input->pf_demux = Demux;
- p_input->pf_demux_control = demux_vaControlDefault;
-
- /* Initialize access plug-in structures. */
- if( p_input->i_mtu == 0 )
- {
- /* Improve speed. */
- p_input->i_bufsize = INPUT_DEFAULT_BUFSIZE;
- }
-
- var_Create( p_input, "demuxdump-file", VLC_VAR_FILE|VLC_VAR_DOINHERIT );
- var_Get( p_input, "demuxdump-file", &val );
- psz_name = val.psz_string;
- if( !psz_name || !*psz_name )
- {
- msg_Warn( p_input, "no dump file name given" );
+ demux_t *p_demux = (demux_t*)p_this;
+ demux_sys_t *p_sys;
+ const char *psz_mode;
+ vlc_value_t val;
+ bool b_append;
+
+ /* Accept only if forced */
+ if( !p_demux->b_force )