<div dir="ltr">The idea around tags is to limit metadata to elements that are relevant to that metadata type. Classes usually have a transform_meta function that checks the tags of the received metadata and checks if it contains the expected tags for the given metadata type. If the metadata does not contain the target tags it is usually dropped. In the case of GstVideoFilter the transform metadata function checks if the metadata contains only the tag "video". If not found, it then defaults to the Base transform_meta function which expects the metadata tags to be empty. So in your case, you could either leave the tags empty or set it to "video".<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 21, 2015 at 1:52 PM, Deven <span dir="ltr"><<a href="mailto:deven.joseph@arcure.net" target="_blank">deven.joseph@arcure.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Hello again,<br>
<br>
Problem solved :<br>
<br>
On my function, mymeta_api_get_type(), when I call<br>
gst_meta_api_type_register, I put some "dummy"<br>
tags into the second argument.<br>
But when I do that, videocrop doesn't call my transform function.<br>
When I put only NULL argument, it works :<br>
<br>
/GType<br>
mymeta_meta_api_get_type (void)<br>
{<br>
  static volatile GType type;<br>
  static const gchar *tags[] = {NULL}; /* It doesn't work with {"MyMeta",<br>
"test", NULL}; */<br>
  if (g_once_init_enter (&type)) {<br>
</span>    GType _type = gst_meta_api_type_register ("MyMetaAPI", tags);<br>
<span class="">    g_once_init_leave (&type, _type);<br>
  }<br>
  return type;<br>
}/<br>
<br>
Last optionnal question : What is the purpose of tags ?<br>
Thank you for your previous answers !<br>
<br>
<br>
<br>
</span>--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Passing-my-own-metadata-tp4672595p4672773.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Passing-my-own-metadata-tp4672595p4672773.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>