From ac8a14d1c825d572fc901490f7658f1a08ff68fe Mon Sep 17 00:00:00 2001 From: Marcin Kolny Date: Wed, 16 Jul 2014 02:44:42 +0200 Subject: [PATCH] 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 --- ext/chromaprint/gstchromaprint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/chromaprint/gstchromaprint.c b/ext/chromaprint/gstchromaprint.c index b7217a64bc..95600d624b 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);