Commit 3163d138 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

dtstospdif.c: Print a warning on frame size changes. Hopefully it will help us...

dtstospdif.c: Print a warning on frame size changes. Hopefully it will help us to debug the issue with SPDIF.
parent ee038b49
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment