CVS Commit: vlc
Jean-Paul Saman
jpsaman at wxs.nl
Fri Jan 11 21:42:15 CET 2002
cvs at videolan.org wrote:
>
> Update of /cvs/videolan/vlc/plugins/mpeg_adec
> Modified Files:
> mpeg_adec.c
>
> Update of /cvs/videolan/vlc/src/audio_output
> Modified Files:
> aout_s16.c
>
> Log Message:
>
> - beginning of code factorization in aout_s16 (more cleaning will come)
> - As for libmad, I have tried to create the aout fifo in libmad_output,
> to open it with the right sample rate, but strangely it didn't work.
I also tried it several times. Creating aout in libmad_output does seem
to work, but still vlc segfaults for some reason. Even when the aout
change is not made.
This is the code I use in libmad_output() to create a aout fifo :
if (p_mad_adec->p_aout_fifo == NULL) {
/* Creating the audio output fifo */
p_mad_adec->p_aout_fifo = aout_CreateFifo( AOUT_ADEC_STEREO_FIFO,
/* fifo type */
p_libmad_pcm->channels,/* nr. of channels */
p_libmad_pcm->samplerate, /* frame rate in Hz ?*/
0,
/* units */
ADEC_FRAME_SIZE/2, /*
frame size */
NULL );
/* buffer */
if ( p_mad_adec->p_aout_fifo == NULL )
{
return( -1 );
}
intf_ErMsg( "libmad_output: aout fifo created" );
}
Is there some change in aout handling that could affect this use?
Greetings,
Jean-Paul Saman
More information about the vlc-devel
mailing list