Initialize end_date in linear resampler.
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 5 Oct 2007 14:43:19 +0000 (14:43 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 5 Oct 2007 14:43:19 +0000 (14:43 +0000)
Someone should really review this.
This does not affect the trivial resampler; I have not checked the others.

modules/audio_filter/resampler/linear.c

index 4df9cc7..2c76f46 100644 (file)
@@ -105,6 +105,7 @@ static int Create( vlc_object_t *p_this )
         msg_Err( p_filter, "out of memory" );
         return VLC_ENOMEM;
     }
+    aout_DateInit( &p_sys->end_date, p_filter->output.i_rate );
 
     p_filter->pf_do_work = DoWork;
 
@@ -282,6 +283,7 @@ static int OpenFilter( vlc_object_t *p_this )
         free( p_sys );
         return VLC_ENOMEM;
     }
+    aout_DateInit( &p_sys->end_date, p_filter->fmt_in.audio.i_rate );
 
     p_filter->pf_audio_filter = Resample;