mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 13:53:19 +00:00
424d4f5e4e
Original commit message from CVS: Added stdlib.h to clean up exit() warnings
21 lines
412 B
C
21 lines
412 B
C
#include <stdlib.h>
|
|
#include <gst/gst.h>
|
|
|
|
extern gboolean _gst_plugin_spew;
|
|
|
|
int main(int argc,char *argv[])
|
|
{
|
|
xmlDocPtr doc;
|
|
|
|
unlink("/etc/gstreamer/reg.xml");
|
|
|
|
_gst_plugin_spew = TRUE;
|
|
gst_init(&argc,&argv);
|
|
|
|
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);
|
|
}
|
|
|