shithub: libsamplerate

Download patch

ref: 5f4abc505329bcdd75bc2ec9ddf77c93e96b8820
parent: f9937b667279820ad602d90e4b11f4c9105f082b
author: Erik de Castro Lopo <erikd@miles>
date: Fri Sep 10 05:43:04 EDT 2004

Reset SRC_PRIVATE fields saved_data and saved_frames in src_reset().

--- a/src/samplerate.c
+++ b/src/samplerate.c
@@ -288,6 +288,9 @@
 	psrc->last_position = 0.0 ;
 	psrc->last_ratio = 0.0 ;
 
+	psrc->saved_data = NULL ;
+	psrc->saved_frames = 0 ;
+
 	psrc->error = SRC_ERR_NO_ERROR ;
 
 	return SRC_ERR_NO_ERROR ;