- return VLC_SUCCESS;
-}
-
-/*****************************************************************************
- * SetFormat: pretend to set the dsp output format
- *****************************************************************************/
-static int SetFormat( aout_instance_t * p_aout )
-{
- p_aout->output.i_nb_samples = FRAME_SIZE;
+ if ( p_aout->output.output.i_format == AOUT_FMT_SPDIF )
+ {
+ p_aout->output.i_nb_samples = A52_FRAME_NB;
+ p_aout->output.output.i_bytes_per_frame = AOUT_SPDIF_SIZE;
+ p_aout->output.output.i_frame_length = A52_FRAME_NB;
+ }
+ else
+ {
+ p_aout->output.i_nb_samples = FRAME_SIZE;
+ }