summaryrefslogtreecommitdiffstats
path: root/gst/speexresample/gstspeexresample.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/speexresample/gstspeexresample.c')
-rw-r--r--gst/speexresample/gstspeexresample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/speexresample/gstspeexresample.c b/gst/speexresample/gstspeexresample.c
index 02738f6f..95ded0d7 100644
--- a/gst/speexresample/gstspeexresample.c
+++ b/gst/speexresample/gstspeexresample.c
@@ -279,7 +279,7 @@ gst_speex_resample_update_state (GstSpeexResample * resample, gint channels,
gboolean updated_latency = FALSE;
updated_latency = (resample->inrate != inrate
- || quality != resample->quality);
+ || quality != resample->quality) && resample->state != NULL;
if (resample->state == NULL) {
ret = TRUE;