mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
aa2b23fe39
commit
ac8a14d1c8
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,6 @@ gst_chromaprint_class_init (GstChromaprintClass * klass)
|
||||||
gobject_class->set_property = gst_chromaprint_set_property;
|
gobject_class->set_property = gst_chromaprint_set_property;
|
||||||
gobject_class->get_property = gst_chromaprint_get_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_object_class_install_property (gobject_class, PROP_FINGERPRINT,
|
||||||
g_param_spec_string ("fingerprint", "Resulting fingerprint",
|
g_param_spec_string ("fingerprint", "Resulting fingerprint",
|
||||||
"Resulting fingerprint", NULL, G_PARAM_READABLE));
|
"Resulting fingerprint", NULL, G_PARAM_READABLE));
|
||||||
|
@ -147,6 +146,8 @@ gst_chromaprint_create_fingerprint (GstChromaprint * chromaprint)
|
||||||
chromaprint_get_fingerprint (chromaprint->context, &chromaprint->fingerprint);
|
chromaprint_get_fingerprint (chromaprint->context, &chromaprint->fingerprint);
|
||||||
chromaprint->record = FALSE;
|
chromaprint->record = FALSE;
|
||||||
|
|
||||||
|
g_object_notify ((GObject *) chromaprint, "fingerprint");
|
||||||
|
|
||||||
tags = gst_tag_list_new (GST_TAG_CHROMAPRINT_FINGERPRINT,
|
tags = gst_tag_list_new (GST_TAG_CHROMAPRINT_FINGERPRINT,
|
||||||
chromaprint->fingerprint, NULL);
|
chromaprint->fingerprint, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue