Commit e9327c81 authored by Wim Taymans's avatar Wim Taymans
Browse files

loadsave fixes

Original commit message from CVS:
loadsave fixes
parent e303a9c2
......@@ -120,6 +120,7 @@ gst_editor_project_new (void)
GstEditorProject *
gst_editor_project_new_from_file (const guchar *fname)
{
#ifndef GST_DISABLE_LOADSAVE
GstEditorProject *editorproject;
GstXML *xml;
GList *elements;
......@@ -140,8 +141,10 @@ gst_editor_project_new_from_file (const guchar *fname)
elements = g_list_next (elements);
}
return editorproject;
#else
return NULL;
#endif
}
void
......@@ -162,7 +165,9 @@ gst_editor_project_save_as (GstEditorProject *project, const guchar *fname)
while (elements) {
GstElement *element = (GstElement *) elements->data;
#ifndef GST_DISABLE_LOADSAVE
xmlSaveFile (fname, gst_xml_write (element));
#endif
elements = g_list_next (elements);
}
......
......@@ -149,7 +149,7 @@ gboolean gst_object_check_uniqueness (GList *list, const gchar *name);
#ifndef GST_DISABLE_LOADSAVE
xmlNodePtr gst_object_save_thyself (GstObject *object, xmlNodePtr parent);
void gst_object_restore_thyself (GstObject *object, xmlNodePtr parent);
void gst_object_restore_thyself (GstObject *object, xmlNodePtr parent);
#else
#pragma GCC poison gst_object_save_thyself
#pragma GCC poison gst_object_restore_thyself
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment