summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-01-27 06:31:52 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-01-27 06:31:52 +0000
commit1a787a0cb2fb2afa3bd7aa21ffac1465130699c2 (patch)
tree2c4f1ce0d2687bdeaf30c81c7202a99ceb985f31 /ext
parent27fbdb97d126d2b29611778362e73b03dc75e472 (diff)
downloadgst-plugins-bad-1a787a0cb2fb2afa3bd7aa21ffac1465130699c2.tar.gz
gst-plugins-bad-1a787a0cb2fb2afa3bd7aa21ffac1465130699c2.tar.bz2
gst-plugins-bad-1a787a0cb2fb2afa3bd7aa21ffac1465130699c2.zip
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.
Diffstat (limited to 'ext')
-rw-r--r--ext/soundtouch/gstbpmdetect.cc2
1 files changed, 1 insertions, 1 deletions
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,