GNOME Bugzilla – Bug 308663
typefind function for smil content
Last modified: 2005-10-19 09:21:39 UTC
see the attached patch, it adds capabilities to typefind to recognize SMIL content. I know there's no SMIL element at the moment, but I'm working on one, and though I contribute this patch.
Created attachment 48165 [details] [review] patch adding SMIL typefind support
I wonder if it would make sense to rewrite this to be a bit more generic, so that it is easy to add other XML-based formats later on. For example, we could have another function that either returns a pointer to the first element or NULL if it's not XML or some other error occured. That could be used by other XML-format typefind functions as well then. Cheers -Tim
Committed to HEAD and 0.8 branch: 2005-10-19 Tim-Philipp Muller <tim at centricular dot net> * gst/typefind/gsttypefindfunctions.c: (utf8_type_find), (xml_check_first_element), (xml_type_find), (smil_type_find), (plugin_init): Add typefinding for SMIL and for generic XML. Based on patch by Akos Maroy (#308663). Cheers -Tim