Original commit message from CVS:
* gst/speexresample/gstspeexresample.c:
(gst_speex_resample_update_state):
Also post GST_MESSAGE_LATENCY if the latency changes.
gint inrate, gint outrate, gint quality, gboolean fp)
{
gboolean ret = TRUE;
+ gboolean updated_latency = FALSE;
+
+ updated_latency = (resample->inrate != inrate
+ || quality != resample->quality);
if (resample->state == NULL) {
ret = TRUE;
resample->inrate = inrate;
resample->outrate = outrate;
+ if (updated_latency)
+ gst_element_post_message (GST_ELEMENT (resample),
+ gst_message_new_latency (GST_OBJECT (resample)));
+
return ret;
}