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
This commit is contained in:
Marcin Kolny 2014-07-16 02:44:42 +02:00 committed by Tim-Philipp Müller
parent aa2b23fe39
commit ac8a14d1c8

View file

@ -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);