shithub: libsamplerate

Download patch

ref: aa6f7617d9297b9fe90863dcf02e9d0cbcb2daad
parent: d68834852fe69ace6213e266b4b4d7c779a65867
author: evpobr <[email protected]>
date: Fri Nov 13 07:50:07 EST 2020

Fix compilation

--- a/src/src_sinc.c
+++ b/src/src_sinc.c
@@ -320,7 +320,7 @@
 	assert (state != NULL) ;
 
 	if (state->private_data == NULL)
-		return SRC_ERR_NO_PRIVATE ;
+		return NULL ;
 
 	SRC_STATE *to = (SRC_STATE *) calloc (1, sizeof (SRC_STATE)) ;
 	if (!state)