summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 625d8f1)
raw | patch | inline | side by side (parent: 625d8f1)
author | Thomas Vander Stichele <thomas@apestaart.org> | |
Sat, 9 Nov 2002 18:40:35 +0000 (18:40 +0000) | ||
committer | Thomas Vander Stichele <thomas@apestaart.org> | |
Sat, 9 Nov 2002 18:40:35 +0000 (18:40 +0000) |
Original commit message from CVS:
separating tags and metadata
separating tags and metadata
examples/seeking/vorbisfile.c | patch | blob | history |
index c94199fe93a4fa5f443b0845aae6944d839df6f1..f550085c14c4ae7e5f0302315b03652b73d40df1 100644 (file)
gint total_ls;
GstCaps *metadata;
+ GstCaps *tags;
GstCaps *caps;
};
return;
}
- if (!strcmp (gst_caps_get_mime (caps), "application/x-gst-metadata")) {
+ if (!strcmp (gst_caps_get_mime (caps), "application/x-gst-metadata") ||
+ !strcmp (gst_caps_get_mime (caps), "application/x-gst-tags"))
+ {
GstProps *props = caps->properties;
GList *walk = props->properties;
g_object_get_property (G_OBJECT (origin), pspec->name, &value);
context->metadata = g_value_peek_pointer (&value);
}
- else if (!strcmp (pspec->name, "caps")) {
+ else if (!strcmp (pspec->name, "tags")) {
+
+ g_value_init (&value, pspec->value_type);
+ g_object_get_property (G_OBJECT (origin), pspec->name, &value);
+ context->tags = g_value_peek_pointer (&value);
+ } else if (!strcmp (pspec->name, "caps")) {
if (GST_IS_PAD (origin) && GST_PAD (origin) == context->pad) {
g_value_init (&value, pspec->value_type);
g_object_get_property (G_OBJECT (origin), pspec->name, &value);
if (count > 10) break;
}
+ print_metadata (context->tags);
print_metadata (context->metadata);
print_format (context->caps);
print_lbs_info (context, stream);