diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-11-23 10:21:31 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-11-23 10:21:31 +0000 |
commit | db93cd7461e32ce9e4261309e6d972758c0de8db (patch) | |
tree | a876c7bf61aa11ba1cbd6983e80f838932d1a72f /gst/speexresample | |
parent | c7cc386eefb82358cfac00eecb9083f84140bd6d (diff) | |
download | gst-plugins-bad-db93cd7461e32ce9e4261309e6d972758c0de8db.tar.gz gst-plugins-bad-db93cd7461e32ce9e4261309e6d972758c0de8db.tar.bz2 gst-plugins-bad-db93cd7461e32ce9e4261309e6d972758c0de8db.zip |
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.
Diffstat (limited to 'gst/speexresample')
-rw-r--r-- | gst/speexresample/gstspeexresample.c | 2 |
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; |