GNOME Bugzilla – Bug 743406
Make sure the GESTextOverlayClip is registered on init
Last modified: 2015-06-24 14:42:52 UTC
GES documentation (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-editing-services/html/GESTextOverlayClip.html) says: >> GESTextOverlayClip implements GESExtractable and GESMetaContainer. I want to use GESTextOverlayClip as asset in .xges file. May be thats wrong idea, but I got error in _parse_asset function at ges/ges-xml-formatter.c: ... extractable_type = g_type_from_name (extractable_type_name); if (extractable_type == G_TYPE_NONE) g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, "element '%s' invalid extractable_type %s'", element_name, extractable_type_name); else if (!g_type_is_a (extractable_type, GES_TYPE_EXTRACTABLE)) g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, "element '%s', %s not an extractable_type'", element_name, extractable_type_name); // I see this message else { ... May be some kind of interface implementation error?
It does implement the interface, can you give us more details about your code / xges file?
Hello, you are so extremly fast :-) Try to add something like <asset id='textoverlay' extractable-type-name='GESTextOverlayClip' properties='properties;' metadatas='metadatas;' /> into your resources section in any .xges file.
Created attachment 295315 [details] [review] Automatic update of common submodule From f2c6b95 to bc76a8b
Created attachment 295316 [details] [review] ges: Make sure the GESTextOverlayClip is register on init So it can be used when de serializing projects containing it.
Attachment 295316 [details] pushed as 7a9d39f - ges: Make sure the GESTextOverlayClip is register on init Target Milestone: 1.5.1
Nice :-) Thank you. So, for workaround, can I temporary just register GESTextOverlayClip manually before parsing if I use older stable version of GES?
I want to make temporary workaround for my old GES, tried to add get_type for this class after ges_init: gst_init(&argc, &argv); ges_init(); GES_TYPE_TEXT_OVERLAY; But I am still facing same error. What am I doing wrong?
Oh, I am so sorry, was confused by similar class names GESTextOverlayClip and GESTextOverlay :-) Please ignore previous message.