summaryrefslogtreecommitdiff
path: root/ext/chromaprint
diff options
context:
space:
mode:
authorMarcin Kolny <marcin.kolny@gmail.com>2014-07-16 02:44:42 +0200
committerTim-Philipp Müller <tim@centricular.com>2016-04-07 20:44:09 +0100
commitac8a14d1c825d572fc901490f7658f1a08ff68fe (patch)
tree58d06e86bf0eb08e25944201cb73e34692ec4c29 /ext/chromaprint
parentaa2b23fe395dcff3343a17ecf976f01298aa6896 (diff)
downloadgstreamer-plugins-bad-ac8a14d1c825d572fc901490f7658f1a08ff68fe.tar.gz
chromaprint: emit notify::fingerprint signal when fingerprint is ready
In addition to adding the fingerprint to the tags. https://bugzilla.gnome.org/show_bug.cgi?id=733233
Diffstat (limited to 'ext/chromaprint')
-rw-r--r--ext/chromaprint/gstchromaprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/chromaprint/gstchromaprint.c b/ext/chromaprint/gstchromaprint.c
index b7217a64b..95600d624 100644
--- a/ext/chromaprint/gstchromaprint.c
+++ b/ext/chromaprint/gstchromaprint.c
@@ -87,7 +87,6 @@ gst_chromaprint_class_init (GstChromaprintClass * klass)
gobject_class->set_property = gst_chromaprint_set_property;
gobject_class->get_property = gst_chromaprint_get_property;
- /* FIXME: do we need this in addition to the tag message ? */
g_object_class_install_property (gobject_class, PROP_FINGERPRINT,
g_param_spec_string ("fingerprint", "Resulting fingerprint",
"Resulting fingerprint", NULL, G_PARAM_READABLE));
@@ -147,6 +146,8 @@ gst_chromaprint_create_fingerprint (GstChromaprint * chromaprint)
chromaprint_get_fingerprint (chromaprint->context, &chromaprint->fingerprint);
chromaprint->record = FALSE;
+ g_object_notify ((GObject *) chromaprint, "fingerprint");
+
tags = gst_tag_list_new (GST_TAG_CHROMAPRINT_FINGERPRINT,
chromaprint->fingerprint, NULL);