From 1a787a0cb2fb2afa3bd7aa21ffac1465130699c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 27 Jan 2008 06:31:52 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ ext/soundtouch/gstbpmdetect.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e72fa0a40d..84a47891a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-27 Sebastian Dröge + + * ext/soundtouch/gstbpmdetect.cc: + Only consider a BPM value above 1.0 as valid. + 2008-01-27 Sebastian Dröge * ext/soundtouch/Makefile.am: diff --git a/ext/soundtouch/gstbpmdetect.cc b/ext/soundtouch/gstbpmdetect.cc index e9e2e274e2..d9949182a7 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,