From: Sebastian Dröge Date: Fri, 23 Nov 2007 10:21:31 +0000 (+0000) Subject: gst/speexresample/gstspeexresample.c: Only post the latency message if we have a... X-Git-Tag: RELEASE-0_10_16~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=155d1b123dfc21c1e9e3e7175e89476e9e51fc8a;p=platform%2Fupstream%2Fgst-plugins-base.git gst/speexresample/gstspeexresample.c: Only post the latency message if we have a resampler state already. Original commit message from CVS: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_update_state): Only post the latency message if we have a resampler state already. --- diff --git a/gst/speexresample/gstspeexresample.c b/gst/speexresample/gstspeexresample.c index 02738f6..95ded0d 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;