summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--gst/speexresample/gstspeexresample.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5a7d663a..3d76a255 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;