summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorErik Walthinsen <omega@temple-baptist.org>2001-10-17 10:21:27 +0000
committerErik Walthinsen <omega@temple-baptist.org>2001-10-17 10:21:27 +0000
commitd574ab8126f0ede0e32d9e4028e30d32888d2f22 (patch)
tree8690671fbc0c9d63d996ba2a56a5d8fd283eb591 /editor
parentb81c9eb858e615658400b0673f4f171d7d1d5a2d (diff)
merge from EVENTS1 on 20011016
Original commit message from CVS: merge from EVENTS1 on 20011016
Diffstat (limited to 'editor')
-rw-r--r--editor/gsteditorproject.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/gsteditorproject.c b/editor/gsteditorproject.c
index 867972de00..e21b563c29 100644
--- a/editor/gsteditorproject.c
+++ b/editor/gsteditorproject.c
@@ -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);
}