]> git.sesse.net Git - vlc/commitdiff
dtstospdif.c: Print a warning on frame size changes. Hopefully it will help us to...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 22 Dec 2007 00:43:59 +0000 (00:43 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 22 Dec 2007 00:43:59 +0000 (00:43 +0000)
modules/audio_filter/converter/dtstospdif.c

index cee4e7eb1dd49dd705e990488ca83469e0c2baa8..ac1e6475048e744c7d6265de6d2c6a57985301a0 100644 (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 );