ext/soundtouch/gstbpmdetect.cc: Only consider a BPM value above 1.0 as valid.

Original commit message from CVS:
* ext/soundtouch/gstbpmdetect.cc:
Only consider a BPM value above 1.0 as valid.
This commit is contained in:
Sebastian Dröge 2008-01-27 06:31:52 +00:00
parent 27fbdb97d1
commit 1a787a0cb2
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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:

View file

@ -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,