mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
7ccc2cf90b
Original commit message from CVS: Externalized the plugin information in /etc/gstreamer/reg.xml - no need to do a plugin_load_all() - plugins are loaded when needed - typedetect functions are loaded when needed (still buggy) - no need to check for the existance of the plugin in the codecs - added gstreamer-register to create the reg.xml file - renamed launch to gstreamer-launch - plugins need to register the typefactory they provide modified the plugins to meet the new design modified the plugins to correctly set their pad types autoplugging can be done without loading the plugins now
18 lines
355 B
C
18 lines
355 B
C
#include <gst/gst.h>
|
|
|
|
int main(int argc,char *argv[])
|
|
{
|
|
xmlDocPtr doc;
|
|
|
|
unlink("/etc/gstreamer/reg.xml");
|
|
|
|
gst_init(&argc,&argv);
|
|
gst_plugin_load_all();
|
|
|
|
doc = xmlNewDoc("1.0");
|
|
doc->root = xmlNewDocNode(doc, NULL, "GST-PluginRegistry", NULL);
|
|
gst_plugin_save_thyself(doc->root);
|
|
xmlSaveFile("/etc/gstreamer/reg.xml", doc);
|
|
exit(0);
|
|
}
|
|
|