diff --git a/ext/sndfile/gstsf.c b/ext/sndfile/gstsf.c index 4570c1082e..ae2cee11b0 100644 --- a/ext/sndfile/gstsf.c +++ b/ext/sndfile/gstsf.c @@ -701,7 +701,7 @@ gst_sf_loop (GstElement *element) gst_element_error (GST_ELEMENT (this), g_strdup_printf ("Opened file with sample rate %d, but could not set caps", this->rate)); - gst_sf_close_file (this->file); + gst_sf_close_file (this); return; } channel->caps_set = TRUE;