diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/speexresample/gstspeexresample.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -2,6 +2,12 @@ * gst/speexresample/gstspeexresample.c: (gst_speex_resample_update_state): + Only post the latency message if we have a resampler state already. + +2007-11-23 Sebastian Dröge <slomo@circular-chaos.org> + + * gst/speexresample/gstspeexresample.c: + (gst_speex_resample_update_state): Also post GST_MESSAGE_LATENCY if the latency changes. 2007-11-23 Sebastian Dröge <slomo@circular-chaos.org> 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; |