diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/soundtouch/gstbpmdetect.cc | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2008-01-27 Sebastian Dröge <slomo@circular-chaos.org> + * ext/soundtouch/gstbpmdetect.cc: + Only consider a BPM value above 1.0 as valid. + +2008-01-27 Sebastian Dröge <slomo@circular-chaos.org> + * ext/soundtouch/Makefile.am: * ext/soundtouch/gstbpmdetect.cc: * ext/soundtouch/gstbpmdetect.hh: diff --git a/ext/soundtouch/gstbpmdetect.cc b/ext/soundtouch/gstbpmdetect.cc index e9e2e274..d9949182 100644 --- a/ext/soundtouch/gstbpmdetect.cc +++ b/ext/soundtouch/gstbpmdetect.cc @@ -208,7 +208,7 @@ gst_bpm_detect_transform_ip (GstBaseTransform * trans, GstBuffer * in) g_free (data); bpm = bpm_detect->priv->detect->getBpm (); - if (bpm != 0.0 && fabs (bpm_detect->bpm - bpm) >= 1.0) { + if (bpm >= 1.0 && fabs (bpm_detect->bpm - bpm) >= 1.0) { GstTagList *tags = gst_tag_list_new (); gst_tag_list_add (tags, GST_TAG_MERGE_REPLACE_ALL, GST_TAG_BEATS_PER_MINUTE, |