1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

dtstospdif.c: Print a warning on frame size changes. Hopefully it will help us to debug the issue with SPDIF.

This commit is contained in:
Pierre d'Herbemont 2007-12-22 00:43:59 +00:00
parent ee038b49f1
commit 3163d13850

View File

@ -124,6 +124,9 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
if( p_in_buf->i_nb_bytes != p_filter->p_sys->i_frame_size )
{
/* Frame size changed, reset everything */
msg_Warn( p_aout, "Frame size changed from %d to %d, resetting everything.",
p_filter->p_sys->i_frame_size, p_in_buf->i_nb_bytes );
p_filter->p_sys->i_frame_size = p_in_buf->i_nb_bytes;
p_filter->p_sys->p_buf = realloc( p_filter->p_sys->p_buf,
p_in_buf->i_nb_bytes * 3 );