[gthumb] initialize all the info fields before registering
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] initialize all the info fields before registering
- Date: Fri, 2 Jul 2010 20:03:57 +0000 (UTC)
commit cf92773f4cb2dc1afb01ffd92c455c6a9466ad41
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Jul 2 22:03:01 2010 +0200
initialize all the info fields before registering
[bug #620962]
extensions/gstreamer_utils/gstreamer-utils.c | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/extensions/gstreamer_utils/gstreamer-utils.c b/extensions/gstreamer_utils/gstreamer-utils.c
index 6db6a21..09accc0 100644
--- a/extensions/gstreamer_utils/gstreamer-utils.c
+++ b/extensions/gstreamer_utils/gstreamer-utils.c
@@ -311,14 +311,17 @@ tag_iterate (const GstTagList *list,
attribute = g_strconcat ("audio-video::other::", tag, NULL);
metadata_info = gth_main_get_metadata_info (attribute);
if (metadata_info == NULL) {
- GthMetadataInfo info;
-
- info.id = attribute;
- info.display_name = gst_tag_get_nick (tag);
- info.category = "audio-video::other";
- info.sort_order = 500;
- info.flags = GTH_METADATA_ALLOW_IN_PROPERTIES_VIEW;
- metadata_info = gth_main_register_metadata_info (&info);
+ GthMetadataInfo *info;
+
+ info = g_new0 (GthMetadataInfo, 1);
+ info->id = attribute;
+ info->display_name = gst_tag_get_nick (tag);
+ info->category = "audio-video::other";
+ info->sort_order = 500;
+ info->flags = GTH_METADATA_ALLOW_IN_PROPERTIES_VIEW;
+ metadata_info = gth_main_register_metadata_info (info);
+
+ g_free (info);
}
tag_key = attribute;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]