mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
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:
parent
27fbdb97d1
commit
1a787a0cb2
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
2008-01-27 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* ext/soundtouch/Makefile.am:
|
* ext/soundtouch/Makefile.am:
|
||||||
|
|
|
@ -208,7 +208,7 @@ gst_bpm_detect_transform_ip (GstBaseTransform * trans, GstBuffer * in)
|
||||||
g_free (data);
|
g_free (data);
|
||||||
|
|
||||||
bpm = bpm_detect->priv->detect->getBpm ();
|
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 ();
|
GstTagList *tags = gst_tag_list_new ();
|
||||||
|
|
||||||
gst_tag_list_add (tags, GST_TAG_MERGE_REPLACE_ALL, GST_TAG_BEATS_PER_MINUTE,
|
gst_tag_list_add (tags, GST_TAG_MERGE_REPLACE_ALL, GST_TAG_BEATS_PER_MINUTE,
|
||||||
|
|
Loading…
Reference in a new issue